diff --git a/stubs/pycurl/METADATA.toml b/stubs/pycurl/METADATA.toml index f6e2bec005ce..09ac8a43ea91 100644 --- a/stubs/pycurl/METADATA.toml +++ b/stubs/pycurl/METADATA.toml @@ -1,4 +1,4 @@ -version = "7.45.3" +version = "7.45.4" upstream_repository = "https://github.com/pycurl/pycurl" [tool.stubtest] diff --git a/stubs/pycurl/pycurl.pyi b/stubs/pycurl/pycurl.pyi index db0bb87c7902..197912f92e9f 100644 --- a/stubs/pycurl/pycurl.pyi +++ b/stubs/pycurl/pycurl.pyi @@ -30,7 +30,7 @@ class Curl: def errstr(self) -> str: ... def duphandle(self) -> Self: ... def errstr_raw(self) -> bytes: ... - if sys.platform == "linux": + if sys.platform == "linux" or sys.platform == "darwin": def set_ca_certs(self, value: bytes | str, /) -> None: ... @final @@ -53,45 +53,16 @@ class CurlShare: def close(self) -> None: ... def setopt(self, option: int, value): ... -if sys.platform != "linux": - AWS_SIGV4: Final = 10305 - CAINFO_BLOB: Final = 40309 - CURL_HTTP_VERSION_3: Final = 30 - CURL_VERSION_ALTSVC: Final = 16777216 - CURL_VERSION_GSASL: Final = 536870912 - CURL_VERSION_HSTS: Final = 268435456 - CURL_VERSION_HTTP3: Final = 33554432 - CURL_VERSION_UNICODE: Final = 134217728 - CURL_VERSION_ZSTD: Final = 67108864 - DOH_URL: Final = 10279 - HTTP09_ALLOWED: Final = 285 - ISSUERCERT_BLOB: Final = 40295 - MAXLIFETIME_CONN: Final = 314 - MAXAGE_CONN: Final = 288 - M_MAX_CONCURRENT_STREAMS: Final = 16 - PROXY_CAINFO_BLOB: Final = 40310 - PROXY_ISSUERCERT: Final = 10296 - PROXY_ISSUERCERT_BLOB: Final = 40297 - PROXY_SSLCERT_BLOB: Final = 40293 - PROXY_SSLKEY_BLOB: Final = 40294 - SSLCERT_BLOB: Final = 40291 - SSLKEY_BLOB: Final = 40292 - UPLOAD_BUFFERSIZE: Final = 280 - VERSION_ALTSVC: Final = 16777216 - VERSION_GSASL: Final = 536870912 - VERSION_HSTS: Final = 268435456 - VERSION_HTTP3: Final = 33554432 - VERSION_UNICODE: Final = 134217728 - VERSION_ZSTD: Final = 67108864 - ACCEPTTIMEOUT_MS: Final = 212 ACCEPT_ENCODING: Final = 10102 ADDRESS_SCOPE: Final = 171 APPCONNECT_TIME: Final = 3145761 APPEND: Final = 50 AUTOREFERER: Final = 58 +AWS_SIGV4: Final = 10305 BUFFERSIZE: Final = 98 CAINFO: Final = 10065 +CAINFO_BLOB: Final = 40309 CAPATH: Final = 10097 CLOSESOCKETFUNCTION: Final = 20208 COMPILE_LIBCURL_VERSION_NUM: Final = 525824 @@ -123,11 +94,19 @@ CURL_HTTP_VERSION_2: Final = 3 CURL_HTTP_VERSION_2TLS: Final = 4 CURL_HTTP_VERSION_2_0: Final = 3 CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE: Final = 5 +CURL_HTTP_VERSION_3: Final = 30 +CURL_HTTP_VERSION_3ONLY: Final = 31 CURL_HTTP_VERSION_LAST: Final = 32 CURL_HTTP_VERSION_NONE: Final = 0 +CURL_VERSION_ALTSVC: Final = 16777216 CURL_VERSION_BROTLI: Final = 8388608 +CURL_VERSION_GSASL: Final = 536870912 +CURL_VERSION_HSTS: Final = 268435456 +CURL_VERSION_HTTP3: Final = 33554432 CURL_VERSION_HTTPS_PROXY: Final = 2097152 CURL_VERSION_MULTI_SSL: Final = 4194304 +CURL_VERSION_UNICODE: Final = 134217728 +CURL_VERSION_ZSTD: Final = 67108864 CUSTOMREQUEST: Final = 10036 DEBUGFUNCTION: Final = 20094 DEFAULT_PROTOCOL: Final = 10238 @@ -135,7 +114,9 @@ DIRLISTONLY: Final = 48 DNS_CACHE_TIMEOUT: Final = 92 DNS_SERVERS: Final = 10211 DNS_USE_GLOBAL_CACHE: Final = 91 +DOH_URL: Final = 10279 EFFECTIVE_URL: Final = 1048577 +EFFECTIVE_METHOD: Final = 1048634 EGDSOCKET: Final = 10077 ENCODING: Final = 10102 EXPECT_100_TIMEOUT_MS: Final = 227 @@ -310,12 +291,14 @@ GSSAPI_DELEGATION_FLAG: Final = 2 GSSAPI_DELEGATION_NONE: Final = 0 GSSAPI_DELEGATION_POLICY_FLAG: Final = 1 HAPROXYPROTOCOL: Final = 274 +HAPROXY_CLIENT_IP: Final = 10323 HEADER: Final = 42 HEADERFUNCTION: Final = 20079 HEADEROPT: Final = 229 HEADER_SEPARATE: Final = 1 HEADER_SIZE: Final = 2097163 HEADER_UNIFIED: Final = 0 +HTTP09_ALLOWED: Final = 285 HTTP200ALIASES: Final = 10104 HTTPAUTH: Final = 107 HTTPAUTH_ANY: Final = -17 @@ -370,6 +353,7 @@ IPRESOLVE_V4: Final = 1 IPRESOLVE_V6: Final = 2 IPRESOLVE_WHATEVER: Final = 0 ISSUERCERT: Final = 10170 +ISSUERCERT_BLOB: Final = 40295 KEYPASSWD: Final = 10026 KHMATCH_MISMATCH: Final = 1 KHMATCH_MISSING: Final = 2 @@ -400,15 +384,18 @@ LOW_SPEED_TIME: Final = 20 MAIL_AUTH: Final = 10217 MAIL_FROM: Final = 10186 MAIL_RCPT: Final = 10187 +MAXAGE_CONN: Final = 288 MAXCONNECTS: Final = 71 MAXFILESIZE: Final = 30117 MAXFILESIZE_LARGE: Final = 30117 +MAXLIFETIME_CONN: Final = 314 MAXREDIRS: Final = 68 MAX_RECV_SPEED_LARGE: Final = 30146 MAX_SEND_SPEED_LARGE: Final = 30145 M_CHUNK_LENGTH_PENALTY_SIZE: Final = 30010 M_CONTENT_LENGTH_PENALTY_SIZE: Final = 30009 M_MAXCONNECTS: Final = 6 +M_MAX_CONCURRENT_STREAMS: Final = 16 M_MAX_HOST_CONNECTIONS: Final = 7 M_MAX_PIPELINE_LENGTH: Final = 8 M_MAX_TOTAL_CONNECTIONS: Final = 13 @@ -517,15 +504,20 @@ PROXYTYPE_SOCKS5_HOSTNAME: Final = 7 PROXYUSERNAME: Final = 10175 PROXYUSERPWD: Final = 10006 PROXY_CAINFO: Final = 10246 +PROXY_CAINFO_BLOB: Final = 40310 PROXY_CAPATH: Final = 10247 PROXY_CRLFILE: Final = 10260 +PROXY_ISSUERCERT: Final = 10296 +PROXY_ISSUERCERT_BLOB: Final = 40297 PROXY_KEYPASSWD: Final = 10258 PROXY_PINNEDPUBLICKEY: Final = 10263 PROXY_SERVICE_NAME: Final = 10235 PROXY_SSLCERT: Final = 10254 PROXY_SSLCERTTYPE: Final = 10255 +PROXY_SSLCERT_BLOB: Final = 40293 PROXY_SSLKEY: Final = 10256 PROXY_SSLKEYTYPE: Final = 10257 +PROXY_SSLKEY_BLOB: Final = 40294 PROXY_SSLVERSION: Final = 250 PROXY_SSL_CIPHER_LIST: Final = 10259 PROXY_SSL_OPTIONS: Final = 261 @@ -612,11 +604,13 @@ SSH_PUBLIC_KEYFILE: Final = 10152 SSLCERT: Final = 10025 SSLCERTPASSWD: Final = 10026 SSLCERTTYPE: Final = 10086 +SSLCERT_BLOB: Final = 40291 SSLENGINE: Final = 10089 SSLENGINE_DEFAULT: Final = 90 SSLKEY: Final = 10087 SSLKEYPASSWD: Final = 10026 SSLKEYTYPE: Final = 10088 +SSLKEY_BLOB: Final = 40292 SSLOPT_ALLOW_BEAST: Final = 1 SSLOPT_NO_REVOKE: Final = 2 SSLVERSION: Final = 32 @@ -671,6 +665,7 @@ TRANSFER_ENCODING: Final = 207 UNIX_SOCKET_PATH: Final = 10231 UNRESTRICTED_AUTH: Final = 105 UPLOAD: Final = 46 +UPLOAD_BUFFERSIZE: Final = 280 URL: Final = 10002 USERAGENT: Final = 10018 USERNAME: Final = 10173 @@ -681,14 +676,18 @@ USESSL_NONE: Final = 0 USESSL_TRY: Final = 1 USE_SSL: Final = 119 VERBOSE: Final = 41 +VERSION_ALTSVC: Final = 16777216 VERSION_ASYNCHDNS: Final = 128 VERSION_BROTLI: Final = 8388608 VERSION_CONV: Final = 4096 VERSION_CURLDEBUG: Final = 8192 VERSION_DEBUG: Final = 64 +VERSION_GSASL: Final = 536870912 VERSION_GSSAPI: Final = 131072 VERSION_GSSNEGOTIATE: Final = 32 +VERSION_HSTS: Final = 268435456 VERSION_HTTP2: Final = 65536 +VERSION_HTTP3: Final = 33554432 VERSION_HTTPS_PROXY: Final = 2097152 VERSION_IDN: Final = 1024 VERSION_IPV6: Final = 1 @@ -704,7 +703,9 @@ VERSION_SPNEGO: Final = 256 VERSION_SSL: Final = 4 VERSION_SSPI: Final = 2048 VERSION_TLSAUTH_SRP: Final = 16384 +VERSION_UNICODE: Final = 134217728 VERSION_UNIX_SOCKETS: Final = 524288 +VERSION_ZSTD: Final = 67108864 WILDCARDMATCH: Final = 197 WRITEDATA: Final = 10001 WRITEFUNCTION: Final = 20011