Skip to content

Commit

Permalink
🧎‍♀️ Genuflect to the types.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 21, 2024
1 parent 48a3a86 commit eca4be4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ explicit_package_bases = True

# Disable overload-overlap due to many false-positives
disable_error_code = overload-overlap

# Lucretiel/autocommand#34
[mypy-autocommand]
ignore_missing_imports = True
4 changes: 2 additions & 2 deletions oathtool/generate-script.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import argparse

try:
from importlib.resources import files # type: ignore
from importlib.resources import files
except ImportError: # pragma: nocover
from importlib_resources import files # type: ignore
from importlib_resources import files # type: ignore[import-not-found, no-redef]

import path
import autocommand
Expand Down

0 comments on commit eca4be4

Please sign in to comment.