Skip to content

Commit

Permalink
Namespaces.lookup_prefix: Employs clearer annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Sep 22, 2024
1 parent f0de321 commit 07e4120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _delb/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __len__(self) -> int:
def __str__(self) -> str:
return str(self.__data)

def lookup_prefix(self, namespace: str) -> Optional[str]:
def lookup_prefix(self, namespace: str) -> str | None:
"""
Resolves a namespace to a prefix while considering namespace declarations of
ascending nodes.
Expand Down

0 comments on commit 07e4120

Please sign in to comment.