-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix Final literal values in various third-party stubs
#15521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ _S = TypeVar("_S", bound=Serialisable) | |
| COLOR_INDEX: Final[tuple[str, ...]] | ||
| BLACK: Final = "00000000" | ||
| WHITE: Final = "00FFFFFF" | ||
| BLUE: Final = "00FFFFFF" | ||
| BLUE: Final = "000000FF" | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| aRGB_REGEX: Final[Pattern[str]] | ||
|
|
||
| class RGB(Typed[str, _N]): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,9 +85,9 @@ CAINFO: Final = 10065 | |
| CAINFO_BLOB: Final = 40309 | ||
| CAPATH: Final = 10097 | ||
| CLOSESOCKETFUNCTION: Final = 20208 | ||
| COMPILE_LIBCURL_VERSION_NUM: Final = 525824 | ||
| COMPILE_PY_VERSION_HEX: Final = 50925040 | ||
| COMPILE_SSL_LIB: Final = "schannel" | ||
| COMPILE_LIBCURL_VERSION_NUM: Final[int] | ||
| COMPILE_PY_VERSION_HEX: Final[int] | ||
| COMPILE_SSL_LIB: Final[str] | ||
|
Comment on lines
+88
to
+90
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unstable, depend on the versions the module was compiled with |
||
| CONDITION_UNMET: Final = 2097187 | ||
| CONNECTTIMEOUT: Final = 78 | ||
| CONNECTTIMEOUT_MS: Final = 156 | ||
|
|
@@ -333,7 +333,7 @@ HTTPAUTH_NEGOTIATE: Final = 4 | |
| HTTPAUTH_NONE: Final = 0 | ||
| HTTPAUTH_NTLM: Final = 8 | ||
| HTTPAUTH_NTLM_WB: Final = 32 | ||
| HTTPAUTH_ONLY: Final = -2147483648 | ||
| HTTPAUTH_ONLY: Final[int] | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Value differs between platforms: |
||
| HTTPGET: Final = 80 | ||
| HTTPHEADER: Final = 10023 | ||
| HTTPPOST: Final = 10024 | ||
|
|
@@ -646,7 +646,7 @@ SSLVERSION_MAX_TLSv1_2: Final = 393216 | |
| SSLVERSION_MAX_TLSv1_3: Final = 458752 | ||
| SSLVERSION_SSLv2: Final = 2 | ||
| SSLVERSION_SSLv3: Final = 3 | ||
| SSLVERSION_TLSv1: Final = 0 | ||
| SSLVERSION_TLSv1: Final = 1 | ||
| SSLVERSION_TLSv1_0: Final = 4 | ||
| SSLVERSION_TLSv1_1: Final = 5 | ||
| SSLVERSION_TLSv1_2: Final = 6 | ||
|
|
||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The runtime values have an actual embedded tab character, not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/docutils/docutils/blob/e0bed47917df14f8fb93c6e48da3cce7a8f5cac0/docutils/docutils/statemachine.py#L110