Skip to content

Commit 5911b0c

Browse files
committed
typing: ignore some errors
1 parent 650141d commit 5911b0c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pygit2/_run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
import sys
3434

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

3838
# Import from pygit2
3939
try:
40-
from _build import get_libgit2_paths
40+
from _build import get_libgit2_paths # type: ignore
4141
except ImportError:
4242
from ._build import get_libgit2_paths
4343

@@ -85,7 +85,7 @@
8585
]
8686
h_source = []
8787
for h_file in h_files:
88-
h_file = dir_path / 'decl' / h_file
88+
h_file = dir_path / 'decl' / h_file # type: ignore
8989
with codecs.open(h_file, 'r', 'utf-8') as f:
9090
h_source.append(f.read())
9191

pygit2/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
try:
2727
from functools import cached_property
2828
except ImportError:
29-
from cached_property import cached_property
29+
from cached_property import cached_property # type: ignore
3030

3131
# Import from pygit2
3232
from .errors import check_error

pygit2/ffi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
# Boston, MA 02110-1301, USA.
2525

2626
# Import from pygit2
27-
from ._libgit2 import ffi, lib as C # noqa: F401
27+
from ._libgit2 import ffi, lib as C # type: ignore # noqa: F401

0 commit comments

Comments
 (0)