Skip to content

Commit e45b53e

Browse files
authored
[mypyc] Add annotation in setup.py to avoid type ignore (#14874)
1 parent 267d376 commit e45b53e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypyc/lib-rt/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77

88
import sys
99
from distutils.core import Extension, setup
10+
from typing import Any
1011

12+
kwargs: dict[str, Any]
1113
if sys.platform == "darwin":
1214
kwargs = {"language": "c++"}
1315
compile_args = []
1416
else:
15-
kwargs = {} # type: ignore
17+
kwargs = {}
1618
compile_args = ["--std=c++11"]
1719

1820
setup(

0 commit comments

Comments
 (0)