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
I would really appreciate if the methods were defined with correct return data type as specified in PEP-484.
This would help with typing hints where the IDE can correctly determine how to help out with the right methods and variables.
Some examples on places I've stumbled into this:
create_ppol should type hint Pool
Pool.acquire() should type hint Connection
Connection.fetch() should type hint list of Record
Connection.fetchrow() should type hint Record or None
Reacted by Pavlos, Ryan C. Hill, Jacopo Farina, Aru Sahni, Mariano, Wouter De Borger, Jianyun Tang, Taybin Rutkin, piesquared, Dennis Alexandersson and 22 more
Activity
elprans commentedon Nov 28, 2018
@Yrlish PRs are welcome!