Compare commits

..

1 Commits

Author SHA1 Message Date
Tim Van Baak 705df21c17 mypy typecheck pass 2021-06-02 21:37:12 -07:00
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
Article query interface
"""
from typing import Union
from typing import Optional
from sqlalchemy import select
@ -14,7 +14,7 @@ def create(
db: DbContext,
lexicon_id: int,
user_id: int,
character_id: Union[int, None],
character_id: Optional[int],
) -> Article:
"""
Create a new article in a lexicon.

View File

@ -2,7 +2,7 @@
Character query interface
"""
from typing import Union
from typing import Optional
from sqlalchemy import select, func
@ -15,7 +15,7 @@ def create(
lexicon_id: int,
user_id: int,
name: str,
signature: Union[str, None],
signature: Optional[str],
) -> Character:
"""
Create a new character for a user.