Skip to content

Commit

Permalink
Add type annotation for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
analog-cbarber committed Apr 22, 2024
1 parent f75ce89 commit e6234a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/whl2conda/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import json
import sys
from pathlib import Path
from typing import Any, Callable, ClassVar, NamedTuple, Union
from typing import Any, Callable, ClassVar, Dict, NamedTuple, Union

# third party
from platformdirs import user_config_path
Expand Down Expand Up @@ -124,9 +124,9 @@ def _fromidentifier(name: str) -> str:

if sys.version_info >= (3, 10):
# kw_only is not available until 3.10
dataclass_args = dict(kw_only=True)
dataclass_args: Dict[str, Any] = dict(kw_only=True)
else:
dataclass_args = {}
dataclass_args: Dict[str, Any] = {}


@dataclasses.dataclass(**dataclass_args)
Expand Down

0 comments on commit e6234a6

Please sign in to comment.