Skip to content

Commit 316ee81

Browse files
committed
Add type ignore that's based on install version
1 parent dac83e5 commit 316ee81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lazy_github/lib/github/backends

lazy_github/lib/github/backends/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _create_request_body_tempfile(body: bytes) -> tempfile._TemporaryFileWrapper
101101
_TEMPORARY_JSON_BODY_DIRECTORY.mkdir(parents=True, exist_ok=True)
102102
if sys.version_info.minor > 11:
103103
# delete_on_close parameter added in Python 3.12
104-
temp = tempfile.NamedTemporaryFile(delete=False, delete_on_close=False, dir=_TEMPORARY_JSON_BODY_DIRECTORY)
104+
temp = tempfile.NamedTemporaryFile(delete=False, delete_on_close=False, dir=_TEMPORARY_JSON_BODY_DIRECTORY) # type: ignore[call-arg]
105105
else:
106106
temp = tempfile.NamedTemporaryFile(delete=False, dir=_TEMPORARY_JSON_BODY_DIRECTORY)
107107
temp.write(body)

0 commit comments

Comments
 (0)