mirror of
				https://github.com/qurator-spk/modstool.git
				synced 2025-11-04 11:24:14 +01:00 
			
		
		
		
	🐛 Use List/Dict for type annotations to support ye olde Python
This commit is contained in:
		
							parent
							
								
									968572168e
								
							
						
					
					
						commit
						3d920f2b50
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,7 @@ import warnings
 | 
			
		|||
from lxml import etree as ET
 | 
			
		||||
from itertools import groupby
 | 
			
		||||
from operator import attrgetter
 | 
			
		||||
from typing import List
 | 
			
		||||
from typing import Dict, List
 | 
			
		||||
from collections.abc import MutableMapping, Sequence
 | 
			
		||||
 | 
			
		||||
import click
 | 
			
		||||
| 
						 | 
				
			
			@ -254,7 +254,7 @@ def mets_to_dict(mets, raise_errors=True):
 | 
			
		|||
                pass
 | 
			
		||||
    return value
 | 
			
		||||
 | 
			
		||||
def pages_to_dict(mets, raise_errors=True) -> list[dict]:
 | 
			
		||||
def pages_to_dict(mets, raise_errors=True) -> List[Dict]:
 | 
			
		||||
    # TODO replace asserts by ValueError
 | 
			
		||||
 | 
			
		||||
    result = []
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue