Skip to content

Commit

Permalink
fix test_factory
Browse files Browse the repository at this point in the history
  • Loading branch information
khsrali committed Jan 17, 2025
1 parent 28d7971 commit 5347271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aiida/plugins/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def StorageFactory(entry_point_name: str, load: bool = True) -> Union[EntryPoint


@overload
def TransportFactory(entry_point_name: str, load: Literal[True] = True) -> Union[Type['Transport']]: ...
def TransportFactory(entry_point_name: str, load: Literal[True] = True) -> Type['Transport']: ...


@overload
Expand All @@ -430,7 +430,7 @@ def TransportFactory(entry_point_name: str, load: bool = True) -> Union[EntryPoi

entry_point_group = 'aiida.transports'
entry_point = BaseFactory(entry_point_group, entry_point_name, load=load)
valid_classes = Transport
valid_classes = (Transport,)

if not load:
return entry_point
Expand Down

0 comments on commit 5347271

Please sign in to comment.