mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Improve typing of Chapters constructor
This commit is contained in:
		
							parent
							
								
									92e00ed667
								
							
						
					
					
						commit
						8bf6e4d87e
					
				@ -15,7 +15,7 @@ OGM_SIMPLE_LINE_2_FORMAT = re.compile(r"^CHAPTER(?P<number>\d+)NAME=(?P<name>.*)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Chapters(SortedKeyList, ABC):
 | 
			
		||||
    def __init__(self, iterable: Optional[Iterable] = None):
 | 
			
		||||
    def __init__(self, iterable: Optional[Iterable[Chapter]] = None):
 | 
			
		||||
        super().__init__(key=lambda x: x.timestamp or 0)
 | 
			
		||||
        for chapter in iterable or []:
 | 
			
		||||
            self.add(chapter)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user