Skip to content

Commit

Permalink
No implicit Optional for mypy type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed Nov 9, 2022
1 parent 83b42db commit 0f481a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dsdk/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def yaml_types(cls) -> None:
Persistor.as_yaml_type()
super().yaml_types()

def __init__(self, *, mssql: Persistor = None, **kwargs):
def __init__(self, *, mssql: Persistor | None = None, **kwargs):
"""__init__."""
self.mssql = mssql
super().__init__(**kwargs)
Expand Down
4 changes: 2 additions & 2 deletions src/dsdk/persistor.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def query(
cur,
query: str,
*,
keys: dict[str, Sequence[Any]] = None,
keys: dict[str, Sequence[Any]] | None = None,
parameters: dict[str, Any] | None = None,
) -> None:
"""Query by key sequences and parameters.
Expand All @@ -74,7 +74,7 @@ def df_from_query(
query: str,
*,
cache: str | None = None,
keys: dict[str, Sequence[Any]] = None,
keys: dict[str, Sequence[Any]] | None = None,
parameters: dict[str, Any] | None = None,
) -> DataFrame:
"""Return df from query by key sequences and parameters.
Expand Down

0 comments on commit 0f481a4

Please sign in to comment.