Commit Graph
4 Commits
Author SHA1 Message Date
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