mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add annotations for missing disutils.extension.Extension attributes (#7417)
This commit is contained in:
@@ -1,4 +1,20 @@
|
||||
class Extension:
|
||||
name: str
|
||||
sources: list[str]
|
||||
include_dirs: list[str]
|
||||
define_macros: list[tuple[str, str | None]]
|
||||
undef_macros: list[str]
|
||||
library_dirs: list[str]
|
||||
libraries: list[str]
|
||||
runtime_library_dirs: list[str]
|
||||
extra_objects: list[str]
|
||||
extra_compile_args: list[str]
|
||||
extra_link_args: list[str]
|
||||
export_symbols: list[str]
|
||||
swig_opts: list[str]
|
||||
depends: list[str]
|
||||
language: str | None
|
||||
optional: bool | None
|
||||
def __init__(
|
||||
self,
|
||||
name: str,
|
||||
@@ -13,7 +29,7 @@ class Extension:
|
||||
extra_compile_args: list[str] | None = ...,
|
||||
extra_link_args: list[str] | None = ...,
|
||||
export_symbols: list[str] | None = ...,
|
||||
swig_opts: str | None = ..., # undocumented
|
||||
swig_opts: list[str] | None = ...,
|
||||
depends: list[str] | None = ...,
|
||||
language: str | None = ...,
|
||||
optional: bool | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user