Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 272f3e6

Browse files
committed
remove __lt__
1 parent cb55bec commit 272f3e6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gapic/schema/imp.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@
1616
from typing import Tuple
1717

1818

19-
@dataclasses.dataclass(frozen=True)
19+
@dataclasses.dataclass(frozen=True, , order=True)
2020
class Import:
2121
package: Tuple[str, ...]
2222
module: str
2323
alias: str = ""
2424

25-
def __lt__(self, other) -> bool:
26-
return str(self) < str(other)
27-
2825
def __eq__(self, other) -> bool:
2926
return self.package == other.package and self.module == other.module
3027

0 commit comments

Comments
 (0)