Skip to content

Commit 113a6ad

Browse files
committed
Fix black/mypy issues
1 parent 7618014 commit 113a6ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: cxxheaderparser/preprocessor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ def _preprocess_file(filename: str, content: typing.Optional[str]) -> str:
341341
raise PreprocessorError("retain_all_content and depfile not compatible")
342342

343343
if content is None:
344-
with open(filename, "r", encoding=encoding) as fp:
345-
content = fp.read()
344+
with open(filename, "r", encoding=encoding) as cfp:
345+
content = cfp.read()
346346

347347
pp.parse(content, filename)
348348

Diff for: tests/test_preprocessor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def make_pp(request) -> typing.Callable[..., PreprocessorFunction]:
5151

5252

5353
def test_basic_preprocessor(
54-
make_pp: typing.Callable[..., PreprocessorFunction]
54+
make_pp: typing.Callable[..., PreprocessorFunction],
5555
) -> None:
5656
content = """
5757
#define X 1

0 commit comments

Comments
 (0)