21
21
import warnings
22
22
from datetime import datetime
23
23
from enum import Enum
24
- from typing import Iterable , Optional , Set
24
+ from typing import Any , Iterable , Optional , Set
25
25
26
26
from sortedcontainers import SortedSet
27
27
@@ -64,7 +64,7 @@ class ComparableTuple(tuple):
64
64
Allows comparison of tuples, allowing for None values.
65
65
"""
66
66
67
- def __lt__ (self , other : object ) -> bool :
67
+ def __lt__ (self , other : Any ) -> bool :
68
68
for s , o in zip (self , other ):
69
69
if s == o :
70
70
continue
@@ -78,7 +78,7 @@ def __lt__(self, other: object) -> bool:
78
78
return False
79
79
return False
80
80
81
- def __gt__ (self , other : object ) -> bool :
81
+ def __gt__ (self , other : Any ) -> bool :
82
82
for s , o in zip (self , other ):
83
83
if s == o :
84
84
continue
@@ -356,7 +356,7 @@ def __eq__(self, other: object) -> bool:
356
356
return hash (other ) == hash (self )
357
357
return False
358
358
359
- def __lt__ (self , other : object ) -> bool :
359
+ def __lt__ (self , other : Any ) -> bool :
360
360
if isinstance (other , HashType ):
361
361
return ComparableTuple ((self .alg , self .content )) < ComparableTuple ((other .alg , other .content ))
362
362
return NotImplemented
@@ -419,7 +419,7 @@ def __eq__(self, other: object) -> bool:
419
419
return hash (other ) == hash (self )
420
420
return False
421
421
422
- def __lt__ (self , other : object ) -> bool :
422
+ def __lt__ (self , other : Any ) -> bool :
423
423
if isinstance (other , XsUri ):
424
424
return self ._uri < other ._uri
425
425
return NotImplemented
@@ -514,7 +514,7 @@ def __eq__(self, other: object) -> bool:
514
514
return hash (other ) == hash (self )
515
515
return False
516
516
517
- def __lt__ (self , other : object ) -> bool :
517
+ def __lt__ (self , other : Any ) -> bool :
518
518
if isinstance (other , ExternalReference ):
519
519
return ComparableTuple ((self ._type , self ._url , self ._comment )) < ComparableTuple ((other ._type , other ._url , other ._comment ))
520
520
return NotImplemented
@@ -617,7 +617,7 @@ def __eq__(self, other: object) -> bool:
617
617
return hash (other ) == hash (self )
618
618
return False
619
619
620
- def __lt__ (self , other : object ) -> bool :
620
+ def __lt__ (self , other : Any ) -> bool :
621
621
if isinstance (other , License ):
622
622
return ComparableTuple ((self .id , self .name )) < ComparableTuple ((other .id , other .name ))
623
623
return NotImplemented
@@ -689,7 +689,7 @@ def __eq__(self, other: object) -> bool:
689
689
return hash (other ) == hash (self )
690
690
return False
691
691
692
- def __lt__ (self , other : object ) -> bool :
692
+ def __lt__ (self , other : Any ) -> bool :
693
693
if isinstance (other , LicenseChoice ):
694
694
return ComparableTuple ((self .license , self .expression )) < ComparableTuple ((other .license , other .expression ))
695
695
return NotImplemented
@@ -751,7 +751,7 @@ def __eq__(self, other: object) -> bool:
751
751
return hash (other ) == hash (self )
752
752
return False
753
753
754
- def __lt__ (self , other : object ) -> bool :
754
+ def __lt__ (self , other : Any ) -> bool :
755
755
if isinstance (other , Property ):
756
756
return ComparableTuple ((self .name , self .value )) < ComparableTuple ((other .name , other .value ))
757
757
return NotImplemented
@@ -829,7 +829,7 @@ def __eq__(self, other: object) -> bool:
829
829
return hash (other ) == hash (self )
830
830
return False
831
831
832
- def __lt__ (self , other : object ) -> bool :
832
+ def __lt__ (self , other : Any ) -> bool :
833
833
if isinstance (other , NoteText ):
834
834
return ComparableTuple ((self .content , self .content_type , self .encoding )) < ComparableTuple ((other .content , other .content_type , other .encoding ))
835
835
return NotImplemented
@@ -901,7 +901,7 @@ def __eq__(self, other: object) -> bool:
901
901
return hash (other ) == hash (self )
902
902
return False
903
903
904
- def __lt__ (self , other : object ) -> bool :
904
+ def __lt__ (self , other : Any ) -> bool :
905
905
if isinstance (other , Note ):
906
906
return ComparableTuple ((self .locale , self .text )) < ComparableTuple ((other .locale , other .text ))
907
907
return NotImplemented
@@ -978,7 +978,7 @@ def __eq__(self, other: object) -> bool:
978
978
return hash (other ) == hash (self )
979
979
return False
980
980
981
- def __lt__ (self , other : object ) -> bool :
981
+ def __lt__ (self , other : Any ) -> bool :
982
982
if isinstance (other , OrganizationalContact ):
983
983
return ComparableTuple ((self .name , self .email , self .phone )) < ComparableTuple ((other .name , other .email , other .phone ))
984
984
return NotImplemented
@@ -1158,7 +1158,7 @@ def __eq__(self, other: object) -> bool:
1158
1158
return hash (other ) == hash (self )
1159
1159
return False
1160
1160
1161
- def __lt__ (self , other : object ) -> bool :
1161
+ def __lt__ (self , other : Any ) -> bool :
1162
1162
if isinstance (other , Tool ):
1163
1163
return ComparableTuple ((self .vendor , self .name , self .version )) < ComparableTuple ((other .vendor , other .name , other .version ))
1164
1164
return NotImplemented
@@ -1236,7 +1236,7 @@ def __eq__(self, other: object) -> bool:
1236
1236
return hash (other ) == hash (self )
1237
1237
return False
1238
1238
1239
- def __lt__ (self , other : object ) -> bool :
1239
+ def __lt__ (self , other : Any ) -> bool :
1240
1240
if isinstance (other , IdentifiableAction ):
1241
1241
return ComparableTuple ((self .timestamp , self .name , self .email )) < ComparableTuple ((other .timestamp , other .name , other .email ))
1242
1242
return NotImplemented
@@ -1278,7 +1278,7 @@ def __eq__(self, other: object) -> bool:
1278
1278
return hash (other ) == hash (self )
1279
1279
return False
1280
1280
1281
- def __lt__ (self , other : object ) -> bool :
1281
+ def __lt__ (self , other : Any ) -> bool :
1282
1282
if isinstance (other , Copyright ):
1283
1283
return self .text < other .text
1284
1284
return NotImplemented
0 commit comments