Skip to content

Commit

Permalink
fix: remove a use of | in type annotations that slipped through
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Oct 9, 2024
1 parent 718fe41 commit edd07c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/validate/test_facades.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def generate_client_facades(cls, project_root: Path) -> ClientFacades:
return client_facades

@staticmethod
def _try_import(module_name: str) -> ModuleType | None:
def _try_import(module_name: str) -> Optional[ModuleType]:
try:
return importlib.import_module(module_name)
except NameError as e:
Expand Down

0 comments on commit edd07c4

Please sign in to comment.