Skip to content

Commit

Permalink
dang it darglint
Browse files Browse the repository at this point in the history
  • Loading branch information
adhami3310 committed Jul 16, 2024
1 parent c6efeaa commit 612ccb0
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions reflex/utils/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ def name(self) -> str:
return self.tag or ""

def __lt__(self, other: ImportVar) -> bool:
"""Compare two ImportVar objects."""
"""Compare two ImportVar objects.
Args:
other: The other ImportVar object to compare.
Returns:
Whether this ImportVar object is less than the other.
"""
return (
self.tag,
self.is_default,
Expand All @@ -130,7 +137,14 @@ def __lt__(self, other: ImportVar) -> bool:
)

def __eq__(self, other: ImportVar) -> bool:
"""Check if two ImportVar objects are equal."""
"""Check if two ImportVar objects are equal.
Args:
other: The other ImportVar object to compare.
Returns:
Whether the two ImportVar objects are equal.
"""
return (
self.tag,
self.is_default,
Expand All @@ -148,7 +162,11 @@ def __eq__(self, other: ImportVar) -> bool:
)

def __hash__(self) -> int:
"""Hash the ImportVar object."""
"""Hash the ImportVar object.
Returns:
The hash of the ImportVar object.
"""
return hash(
(
self.tag,
Expand Down

0 comments on commit 612ccb0

Please sign in to comment.