mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add more type annotations
This commit is contained in:
@@ -185,7 +185,7 @@ else:
|
||||
_HasTable = object
|
||||
|
||||
|
||||
def get_uuid(uuid: Optional[Union[UUID, str]] = None):
|
||||
def get_uuid(uuid: Optional[Union[UUID, str]] = None) -> UUID:
|
||||
if isinstance(uuid, UUID):
|
||||
return uuid
|
||||
if not uuid:
|
||||
|
||||
Reference in New Issue
Block a user