Skip to content

Commit

Permalink
fix(typehint): update type hint for class instance
Browse files Browse the repository at this point in the history
Update egraph.py
  • Loading branch information
Dreamsorcerer authored and cpcloud committed Jun 16, 2023
1 parent 0ce0b9f commit 2e1e14f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ibis/common/egraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import itertools
import math
from typing import (
TYPE_CHECKING,
Any,
Hashable,
Iterable,
Expand All @@ -17,9 +16,6 @@
from ibis.common.graph import Node
from ibis.util import promote_list

if TYPE_CHECKING:
from typing_extensions import Self

K = TypeVar("K", bound=Hashable)


Expand Down Expand Up @@ -108,7 +104,7 @@ def __len__(self) -> int:
"""Get the number of ids in the disjoint set."""
return len(self._parents)

def __eq__(self, other: Self[K]) -> bool:
def __eq__(self, other: object) -> bool:
"""Check if the disjoint set is equal to another disjoint set.
Parameters
Expand Down

0 comments on commit 2e1e14f

Please sign in to comment.