@@ -148,6 +148,7 @@ def __lt__(self, other: object) -> bool:
148148 return NotImplemented
149149
150150 def __hash__ (self ) -> int :
151+ # TODO
151152 return hash ((self .flow , self .classification ))
152153
153154 def __repr__ (self ) -> str :
@@ -251,6 +252,7 @@ def __lt__(self, other: Any) -> bool:
251252 return NotImplemented
252253
253254 def __hash__ (self ) -> int :
255+ # TODO
254256 return hash ((self .content , self .content_type , self .encoding ))
255257
256258 def __repr__ (self ) -> str :
@@ -530,6 +532,7 @@ def __lt__(self, other: Any) -> bool:
530532 return NotImplemented
531533
532534 def __hash__ (self ) -> int :
535+ # TODO
533536 return hash ((self .alg , self .content ))
534537
535538 def __repr__ (self ) -> str :
@@ -733,7 +736,7 @@ def __init__(self, uri: str) -> None:
733736
734737 def __eq__ (self , other : Any ) -> bool :
735738 if isinstance (other , XsUri ):
736- return hash ( other ) == hash ( self )
739+ return self . _uri == other . _uri
737740 return False
738741
739742 def __lt__ (self , other : Any ) -> bool :
@@ -907,6 +910,7 @@ def __lt__(self, other: Any) -> bool:
907910 return NotImplemented
908911
909912 def __hash__ (self ) -> int :
913+ # TODO
910914 return hash ((
911915 self ._type , self ._url , self ._comment ,
912916 tuple (sorted (self ._hashes , key = hash ))
@@ -984,6 +988,7 @@ def __lt__(self, other: Any) -> bool:
984988 return NotImplemented
985989
986990 def __hash__ (self ) -> int :
991+ # TODO
987992 return hash ((self .name , self .value ))
988993
989994 def __repr__ (self ) -> str :
@@ -1075,6 +1080,7 @@ def __lt__(self, other: Any) -> bool:
10751080 return NotImplemented
10761081
10771082 def __hash__ (self ) -> int :
1083+ # TODO
10781084 return hash ((self .content , self .content_type , self .encoding ))
10791085
10801086 def __repr__ (self ) -> str :
@@ -1159,6 +1165,7 @@ def __lt__(self, other: Any) -> bool:
11591165 return NotImplemented
11601166
11611167 def __hash__ (self ) -> int :
1168+ # TODO
11621169 return hash ((self .text , self .locale ))
11631170
11641171 def __repr__ (self ) -> str :
@@ -1249,6 +1256,7 @@ def __lt__(self, other: Any) -> bool:
12491256 return NotImplemented
12501257
12511258 def __hash__ (self ) -> int :
1259+ # TODO
12521260 return hash ((self .timestamp , self .name , self .email ))
12531261
12541262 def __repr__ (self ) -> str :
@@ -1287,16 +1295,16 @@ def text(self, text: str) -> None:
12871295
12881296 def __eq__ (self , other : object ) -> bool :
12891297 if isinstance (other , Copyright ):
1290- return hash ( other ) == hash ( self )
1298+ return self . _text == other . _text
12911299 return False
12921300
12931301 def __lt__ (self , other : Any ) -> bool :
12941302 if isinstance (other , Copyright ):
1295- return self .text < other .text
1303+ return self ._text < other ._text
12961304 return NotImplemented
12971305
12981306 def __hash__ (self ) -> int :
1299- return hash (self .text )
1307+ return hash (self ._text )
13001308
13011309 def __repr__ (self ) -> str :
13021310 return f'<Copyright text={ self .text } >'
0 commit comments