You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Substituted namedtuple inheritance with common base `typing.NamedTuple` subclass in misc.py, since these classes share almost the exact same interface.
- Added a _typing_compat.py module to be able to import typing.Self, or a placeholder for it, in multiple other modules without bloating their code.
- Added basic method annotations to the two reference classes.
- Not annotations-related:
- Move the __hash__ implementation over to IRIReference from URIMixin to be congruent with URIReference.
- Made the __eq__ implementations more similar to avoid different behavior in cases of inheritance (rare as that might be).
- Added overloads to `normalizers.normalize_query` and `normalizers.normalize_fragment` to clearly indicate that None will get passed through. This behavior is relied upon by the library currently.
- Note: The runtime-related changes can be reverted and reattempted later if need be. Still passing all the tests currently.
0 commit comments