Commit Graph
7 Commits
Author SHA1 Message Date
Ali HamdanandGitHub aed8c3fe1c Replace aliases by builtins.* in uuid (#10422)
These aliases were used because the class has properties called
`int` and `bytes`. I think it is better to use the shadowed types
from the builtins module. This should not change anything from the
type checking side but it improves the IDE experience[^1].

[^1]: I was using uuid recently and the aliases showed up in vscode,
I thought they were uuid special types and had to look in the stub to
know what they are.
2023-07-08 11:58:50 +01:00
Ali HamdanandGitHub 56aeeb677f Fix groups type in argparse.HelpFormatter (#10226) 2023-05-27 14:44:04 +02:00
Ali HamdanandGitHub ca701f0ef3 Type argparse.HelpFormatter._Section (#10191)
The python type system doesn't provide a way to fully express the type of
`self.NestedClass` with inheritance but this change is still an improvement
over the `Any` annotations. The usage of `_Section` is rare and subclassing
it is even rarer so this shouldn't cause trouble.
2023-05-22 07:39:46 -07:00
Ali HamdanandGitHub 3add7f0d76 Reference the stub_uploader issue discussing externals deps in the contributing guide (#10156)
Closes #10150
2023-05-10 08:32:00 +02:00
6bb40e95ac xml: NodeList.length is read-only (#9994)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-31 23:55:46 +01:00
Ali HamdanandGitHub f8add366d5 pyserial: Fix read and write methods (#9825) 2023-03-08 21:11:26 -08:00
hamdanalandGitHub a2fee5b30f pyserial: fix stubtest errors (#9722) 2023-02-19 12:08:20 +00:00