Commit Graph
13 Commits
Author SHA1 Message Date
Marti Raudsepp 893b9a760d [django-filter] Improve constructor param types and add missing re-exports (#14556)
* Accept `StrOrPromise` for field labels -- allow Django lazy translated strings.
* Added `__init__` params that are inherited from parent classes. Reduced usage of loosely typed `*args, **kwargs`.
* Removed `__init__` method type hints from classes whose parameters are same as parent class -- to avoid duplicating them.
* Added missing re-exports to `django_filters/rest_framework/__init__.pyi` -- the imports in this file are clearly meant as re-export
2025-08-14 20:56:30 +02:00
Marti Raudsepp 1ace5718de Fix inferred type of is_dataclass(Any) (#12517) 2024-08-14 23:09:11 +02:00
Marti Raudsepp ee6df10dcc [pyjks] Fill in jks.bks and other modules, improved constructors (#10815) 2023-10-06 11:09:11 +02:00
Marti RaudseppandAlex Waygood 1163a5ecfb Add stubs for pyjks (#10797)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-01 12:31:34 +01:00
Marti Raudsepp 71d81f886d [requests] Improve exception class constructors (#10740) 2023-09-22 19:42:58 -07:00
Marti Raudsepp c38c03bab8 builtins: next() does not allow keyword args for default (#6169) 2021-10-14 09:51:58 +02:00
Marti Raudsepp ed26eced47 cyptography: Add default to few remaining backend= arguments (#4982)
This was changed in cryptography 3.1. Most places in typeshed were
already correct, fixed few remaining omissions.
2021-01-28 09:38:20 -08:00
Marti Raudsepp 2873ff16f7 pyVmomi: Add constructors for vmodl.query classes (#4958) 2021-01-23 13:19:44 +01:00
Marti Raudsepp 44556e1253 Improve sys._current_frames hint (#4916) 2021-01-08 12:55:16 +01:00
Marti Raudsepp 4335fe9ef9 cryptography: Add common certificate extensions (#4778)
Added hints for following classes:
* AuthorityKeyIdentifier
* SubjectKeyIdentifier
* AuthorityInformationAccess
* SubjectInformationAccess
* BasicConstraints
* KeyUsage
* ExtendedKeyUsage
* UnrecognizedExtension
* AccessDescription (not extension itself, but used by
    AuthorityInformationAccess, SubjectInformationAccess)
2020-11-25 08:56:27 -08:00
Marti Raudsepp 5466117847 cryptography: Fix 'oid' field hints to ObjectIdentifier (#4780)
The `ExtensionOID` class is simply a namespace for constants, there are no instances of that class.
2020-11-24 18:08:47 -08:00
Marti Raudsepp d288f443b9 Merge {IO,Environment,Windows}Error into OSError for Python 3.3+ (#1852)
Starting with Python 3.3, IOError, EnvironmentError and WindowsError are
aliases for OSError, which has all the attributes.

Reference:
* https://docs.python.org/3/library/exceptions.html#OSError
* https://www.python.org/dev/peps/pep-3151/

* OSError: Drop Python <3.3 compatibility
* Use Any instead of Union for filename/filename2 type, per GvR comment
See: https://github.com/python/mypy/pull/4541
2018-02-14 16:33:56 +00:00
Marti Raudsepp 15f07f5d03 Add ImportError attributes name, path for Python 3.3+ (#1849)
Reference: https://docs.python.org/3/library/exceptions.html#ImportError
2018-02-01 07:38:26 -08:00