implement explicit Optional type hints for =None parameters

Thanks https://github.com/hauntsaninja/no_implicit_optional
This commit is contained in:
InsanePrawn 2022-11-09 15:22:06 +01:00
parent 669c82a10b
commit 82a87e7ea9
15 changed files with 34 additions and 27 deletions

View file

@ -1,6 +1,7 @@
import logging
from copy import deepcopy
from typing import Optional
from .scheme import Profile, SparseProfile
@ -23,7 +24,7 @@ PROFILE_EMPTY: Profile = {key: None for key in PROFILE_DEFAULTS.keys()} # type:
def resolve_profile(
name: str,
sparse_profiles: dict[str, SparseProfile],
resolved: dict[str, Profile] = None,
resolved: Optional[dict[str, Profile]] = None,
_visited=None,
) -> dict[str, Profile]:
"""