Skip to content

Commit

Permalink
Update incorrect or incomplete constants in distutils (python#12536)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Aug 17, 2024
1 parent b3c077f commit 45627d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 6 additions & 2 deletions stdlib/distutils/command/install.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import sys
from collections.abc import Callable
from typing import Any, ClassVar
from typing import Any, ClassVar, Final

from ..cmd import Command

HAS_USER_SITE: bool
SCHEME_KEYS: tuple[str, ...]
INSTALL_SCHEMES: dict[str, dict[Any, Any]]
INSTALL_SCHEMES: Final[dict[str, dict[str, str]]]

if sys.version_info < (3, 10):
WINDOWS_SCHEME: Final[dict[str, str]]

class install(Command):
description: str
Expand Down
4 changes: 3 additions & 1 deletion stdlib/distutils/debug.pyi
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
DEBUG: bool | None
from typing import Final

DEBUG: Final[str | None]
6 changes: 3 additions & 3 deletions stubs/setuptools/setuptools/_distutils/sysconfig.pyi
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Literal, overload
from typing import Final, Literal, overload
from typing_extensions import deprecated

from setuptools._distutils.ccompiler import CCompiler

PREFIX: str
EXEC_PREFIX: str
PREFIX: Final[str]
EXEC_PREFIX: Final[str]

@overload
@deprecated("SO is deprecated, use EXT_SUFFIX. Support will be removed when this module is synchronized with stdlib Python 3.11")
Expand Down

0 comments on commit 45627d1

Please sign in to comment.