interpreter: add rust_abi to type annotations

pull/12298/head
Dylan Baker 1 year ago
parent 3c88c73c59
commit e27dbb42a0
  1. 12
      mesonbuild/interpreter/kwargs.py

@ -332,13 +332,17 @@ class _BuildTarget(_BaseBuildTarget):
"""Arguments shared by non-JAR functions"""
class _LibraryMixin(TypedDict):
rust_abi: T.Optional[Literal['c', 'rust']]
class Executable(_BuildTarget):
gui_app: T.Optional[bool]
win_subsystem: T.Optional[str]
class StaticLibrary(_BuildTarget):
class StaticLibrary(_BuildTarget, _LibraryMixin):
pass
@ -349,15 +353,15 @@ class _SharedLibMixin(TypedDict):
version: T.Optional[str]
class SharedLibrary(_BuildTarget, _SharedLibMixin):
class SharedLibrary(_BuildTarget, _SharedLibMixin, _LibraryMixin):
pass
class SharedModule(_BuildTarget):
class SharedModule(_BuildTarget, _LibraryMixin):
pass
class Library(_BuildTarget, _SharedLibMixin):
class Library(_BuildTarget, _SharedLibMixin, _LibraryMixin):
"""For library, both_library, and as a base for build_target"""

Loading…
Cancel
Save