Commit Graph
11 Commits
Author SHA1 Message Date
Kevin Kirsche 37911bfaa3 Add type hints to mysqlclient.times (#8392) 2022-07-26 15:06:37 +02:00
Kevin Kirsche 5732b8f34e email.Message.walk yields self (#8398)
This updates the generator used by `Message` to return `Self` so that it correctly changes when a `MIMEPart` or `EmailMessage`.

Fixes #8290
2022-07-26 11:17:45 +02:00
Kevin Kirsche df905102da Add more urllib3.__init__ annotations (#8402) 2022-07-25 22:17:52 +01:00
Kevin Kirsche ef810e4f47 Annotate mysqlclient.release.version_info (#8391) 2022-07-25 22:08:17 +01:00
Kevin Kirsche 432e55b039 Add missing re-exports and vars to requests.compat (#8396) 2022-07-25 21:56:05 +01:00
Kevin Kirsche d3c4cb105a Add missing __version__ to chardet.__init__ (#8401) 2022-07-25 21:37:21 +01:00
Kevin Kirsche 0a31779909 Update CONTRIBUTING.md as TypeAlias is now allowed (#8397) 2022-07-25 12:53:33 -07:00
Kevin Kirsche 980b1954fd PyYaml’s Serializer: annotate open, close, serialize (#8383)
As seen here:
https://github.com/yaml/pyyaml/blob/master/lib/yaml/serializer.py#L27-L41

Neither `open` nor `close` methods return, so `None` added as the return type.

Finally, serialize accepts a Node and does not return as seen here:
https://github.com/yaml/pyyaml/blob/master/lib/yaml/serializer.py#L46-L58
2022-07-24 14:51:39 +01:00
Kevin Kirsche a066618eb6 mysqlclient: Annotate types of exceptions in Connection class (#8382) 2022-07-24 14:48:48 +01:00
Kevin Kirsche f7166fc6ea Add return type to MySQLdb.Connection.__enter__ (#8381)
This pull request adds the return type, as seen in the link below, to the `mysqlclient.MySQLdb.connections:Connection.__enter__`
https://github.com/PyMySQL/mysqlclient/blob/main/MySQLdb/connections.py#L230-L231
2022-07-24 12:48:47 +01:00
Kevin Kirsche ccdb558af9 fix: Return Never rather than None from signal.default_int_handler (#8249) 2022-07-06 11:05:38 -07:00