Skip to content

Commit

Permalink
Fix type hints of internal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdedude committed Jan 28, 2025
1 parent f459923 commit 5036367
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/neo4j/_work/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class SummaryInputPosition:
offset: int

@classmethod
def _from_metadata(cls, metadata: t.Any) -> te.Self | None:
def _from_metadata(cls, metadata: object) -> te.Self | None:
if not isinstance(metadata, dict):
return None
line = metadata.get("line")
Expand Down Expand Up @@ -515,7 +515,7 @@ class SummaryNotification:
position: SummaryNotificationPosition | None = None

@classmethod
def _from_metadata(cls, metadata: t.Any) -> te.Self:
def _from_metadata(cls, metadata: object) -> te.Self:
if not isinstance(metadata, dict):
return cls()
kwargs: _SummaryNotificationKwargs = {
Expand Down Expand Up @@ -631,7 +631,7 @@ def _no_data(cls) -> te.Self:
return obj

@classmethod
def _from_status_metadata(cls, metadata: t.Any) -> te.Self:
def _from_status_metadata(cls, metadata: object) -> te.Self:
obj = cls()
if isinstance(metadata, dict):
obj._status_metadata = metadata
Expand All @@ -640,7 +640,7 @@ def _from_status_metadata(cls, metadata: t.Any) -> te.Self:
return obj

@classmethod
def _from_notification_metadata(cls, metadata: t.Any) -> te.Self:
def _from_notification_metadata(cls, metadata: object) -> te.Self:
obj = cls()
if not isinstance(metadata, dict):
metadata = {}
Expand Down

0 comments on commit 5036367

Please sign in to comment.