forked from python/typeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final for distutils constants (python#12454)
Co-authored-by: Avasam <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
453df4b
commit 257b2fa
Showing
9 changed files
with
36 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
from distutils.unixccompiler import UnixCCompiler | ||
from distutils.version import LooseVersion | ||
from re import Pattern | ||
from typing import Literal | ||
from typing import Final, Literal | ||
|
||
def get_msvcr() -> list[str] | None: ... | ||
|
||
class CygwinCCompiler(UnixCCompiler): ... | ||
class Mingw32CCompiler(CygwinCCompiler): ... | ||
|
||
CONFIG_H_OK: str | ||
CONFIG_H_NOTOK: str | ||
CONFIG_H_UNCERTAIN: str | ||
CONFIG_H_OK: Final = "ok" | ||
CONFIG_H_NOTOK: Final = "not ok" | ||
CONFIG_H_UNCERTAIN: Final = "uncertain" | ||
|
||
def check_config_h() -> tuple[Literal["ok", "not ok", "uncertain"], str]: ... | ||
|
||
RE_VERSION: Pattern[bytes] | ||
RE_VERSION: Final[Pattern[bytes]] | ||
|
||
def get_versions() -> tuple[LooseVersion | None, ...]: ... | ||
def is_cygwingcc() -> bool: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters