Skip to content

Commit f5dbc19

Browse files
committed
Add mypy config and tidy up
1 parent 3fd8ab1 commit f5dbc19

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

radicli/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ def find_base_type(
198198

199199
def format_type(arg_type: Any) -> str:
200200
"""Get a pretty-printed string for a type."""
201-
# Nicer formatting for our own TypeVars
202201
if isinstance(arg_type, type(NewType)) and hasattr(arg_type, "__supertype__"): # type: ignore
203202
return f"{arg_type.__name__} ({format_type(arg_type.__supertype__)})" # type: ignore
204203
if hasattr(arg_type, "__name__"):

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ exclude =
3939
.env,
4040
.git,
4141
__pycache__,
42+
43+
[mypy]
44+
ignore_missing_imports = True
45+
no_implicit_optional = True
46+
allow_redefinition = True

0 commit comments

Comments
 (0)