Commit Graph

12 Commits

Author SHA1 Message Date
Screwtapello
49b717ca52 stdlib/xml/sax: Add type annotations (#10606)
* stdlib/xml/sax: Type annotations for commonly used methods.

* stdlib/xml/sax: More annotations.

It turns out SAX's definition of a "qname" is exactly the opposite of
ElementTree's. With that understanding, let's annotate the Attributes*Impl
classes too.

* stdlib/xml/sax: I better understand what AttributesNSImpl is doing now.

* Update third-party library stubs to agree with the new SAX annotations.
2023-09-22 20:08:13 -07:00
Nikita Sobolev
2c05c02b36 Update netaddr to 0.9.0 (#10732) 2023-09-19 12:33:02 +01:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Alex Waygood
2279886964 Style: prefer type[Foo | Bar] over type[Foo] | type[Bar] (#10039) 2023-04-13 11:34:53 +02:00
Alex Waygood
bb7c376142 Add defaults for third-party stubs M-O (#9956) 2023-03-27 19:20:30 +02:00
Avasam
078c6a0958 Update Unused parameters in stubs/ (#9704)
* Update _Unused TypeAlias

* Update `object | None` params

* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
Avasam
ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Avasam
372073d35b Use _typeshed.FileDescriptorOrPath in stubs (#9695) 2023-02-09 08:30:19 +01:00
Alex Waygood
0ef9c3f8e8 Enable flake8-pyi's Y037 (#9686) 2023-02-06 19:01:02 -08:00
Alex Waygood
efee70abfa Bump mypy to 1.0 (#9684) 2023-02-06 15:57:17 -08:00
hamdanal
2c9816e788 Add stubs for netaddr (#9431)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-07 16:22:09 +00:00