Skip to content

Commit 44bac2e

Browse files
committed
Add types-cffi to test requirements
This hopefully helps with future typings.
1 parent 1d9d0be commit 44bac2e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pygit2/_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from pathlib import Path
3434

3535
# Import from cffi
36-
from cffi import FFI # type: ignore
36+
from cffi import FFI
3737

3838
# Import from pygit2
3939
try:

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest
22
pytest-cov
33
mypy
4+
types-cffi

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Import setuptools before distutils to avoid user warning
2929
import os
3030
import sys
31-
from distutils import log
31+
from distutils import log # type: ignore[attr-defined]
3232
from distutils.command.build import build
3333
from distutils.command.sdist import sdist
3434
from pathlib import Path
@@ -129,7 +129,7 @@ def run(self):
129129

130130
# On Windows we package up the dlls with the plugin.
131131
if os.name == 'nt':
132-
cmdclass['build'] = BuildWithDLLs
132+
cmdclass['build'] = BuildWithDLLs # type: ignore[assignment]
133133

134134
src = __dir__ / 'src'
135135
pygit2_exts = [str(path) for path in sorted(src.iterdir()) if path.suffix == '.c']

0 commit comments

Comments
 (0)