Skip to content

Commit

Permalink
Added type alias for atom handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Senna committed Sep 11, 2024
1 parent f6c6628 commit 38515e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1 +1 @@

[#214] Added type alias for atom handle
4 changes: 3 additions & 1 deletion hyperon_das_atomdb/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

# pylint: disable=invalid-name

HandleT: TypeAlias = str

AtomT: TypeAlias = dict[str, Any]

NodeT: TypeAlias = AtomT
Expand All @@ -49,7 +51,7 @@

MatchedTargetsListT: TypeAlias = list[tuple[str, tuple[str, ...]]]

HandlesListT: TypeAlias = list[str]
HandlesListT: TypeAlias = list[HandleT]

MatchedLinksResultT: TypeAlias = tuple[int | None, HandlesListT | MatchedTargetsListT]

Expand Down

0 comments on commit 38515e9

Please sign in to comment.