Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Nov 10, 2024
1 parent 205f4d6 commit f5d49b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ repos:
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies:
- cython
- setuptools
6 changes: 1 addition & 5 deletions src/witty/compile_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@
from Cython.Build import cythonize
from Cython.Build.Inline import build_ext
from Cython.Utils import get_cython_cache_dir
from setuptools import Distribution, Extension

if TYPE_CHECKING:
from collections.abc import Iterator, Sequence
from types import ModuleType

try:
from distutils.core import Distribution, Extension # until Python 3.11
except ImportError:
from setuptools import Distribution, Extension


def compile_module(
source_pyx: str,
Expand Down

0 comments on commit f5d49b7

Please sign in to comment.