Compare commits
1 Commits
705df21c17
...
26a6dd3c6c
Author | SHA1 | Date |
---|---|---|
Tim Van Baak | 26a6dd3c6c |
|
@ -2,7 +2,7 @@
|
|||
Article query interface
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
from typing import Union
|
||||
|
||||
from sqlalchemy import select
|
||||
|
||||
|
@ -14,7 +14,7 @@ def create(
|
|||
db: DbContext,
|
||||
lexicon_id: int,
|
||||
user_id: int,
|
||||
character_id: Optional[int],
|
||||
character_id: Union[int, None],
|
||||
) -> Article:
|
||||
"""
|
||||
Create a new article in a lexicon.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Character query interface
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
from typing import Union
|
||||
|
||||
from sqlalchemy import select, func
|
||||
|
||||
|
@ -15,7 +15,7 @@ def create(
|
|||
lexicon_id: int,
|
||||
user_id: int,
|
||||
name: str,
|
||||
signature: Optional[str],
|
||||
signature: Union[str, None],
|
||||
) -> Character:
|
||||
"""
|
||||
Create a new character for a user.
|
||||
|
|
Loading…
Reference in New Issue