Skip to content

Commit 12badb7

Browse files
committed
Merge branch 'add-kwargs' of https://github.com/tlambert03/witty into add-kwargs
2 parents ced283f + f5d49b7 commit 12badb7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ repos:
2525
rev: v1.13.0
2626
hooks:
2727
- id: mypy
28+
additional_dependencies:
29+
- cython
30+
- setuptools

src/witty/compile_module.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@
1313
from Cython.Build import cythonize
1414
from Cython.Build.Inline import build_ext
1515
from Cython.Utils import get_cython_cache_dir
16+
from setuptools import Distribution, Extension
1617

1718
if TYPE_CHECKING:
1819
from collections.abc import Iterator, Sequence
1920
from types import ModuleType
2021

21-
try:
22-
from distutils.core import Distribution, Extension # until Python 3.11
23-
except ImportError:
24-
from setuptools import Distribution, Extension
25-
2622

2723
def compile_module(
2824
source_pyx: str,

0 commit comments

Comments
 (0)