Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Appease the linters.
Browse files Browse the repository at this point in the history
  • Loading branch information
seandstewart committed Dec 15, 2021
1 parent 5a719e5 commit 9982e37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
rev: v0.910-1
hooks:
- id: mypy
exclude: '.*tests/.*|.*docs/.*'
args: [--no-strict-optional, --ignore-missing-imports, --follow-imports=silent]
additional_dependencies: [types-all]
- repo: https://github.com/ambv/black
rev: 21.7b0
rev: 21.12b0
hooks:
- id: black
language_version: python3.8
Expand All @@ -16,6 +16,6 @@ repos:
hooks:
- id: flake8
- repo: .
rev: 9e7fc8f7258a660a4ff8ce252b3337d1db62d7ec
rev: v2.7.9
hooks:
- id: export-requirements-docs
3 changes: 0 additions & 3 deletions typic/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def evaluate_forwardref(
) -> Any:
return type_._eval_type(globalns, localns)


elif sys.version_info >= (3, 9): # pragma: nocover
from typing import ForwardRef

Expand All @@ -75,7 +74,6 @@ def evaluate_forwardref(
recursive_guard = recursive_guard or set()
return type_._evaluate(globalns, localns, recursive_guard) # type: ignore


else: # pragma: nocover
from typing import ForwardRef # type: ignore

Expand All @@ -96,7 +94,6 @@ def lru_cache(
) -> Callable[[F], F]:
pass


else:
from functools import lru_cache

Expand Down

0 comments on commit 9982e37

Please sign in to comment.