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
{{ message }}
Repository navigation
Python's datetime.datetime.strptime has wrong return type #9578
According to the stubs, datetime.datetime.strptime returns a datetime. However, it actually returns the type of the class. So if I subclass datetime and call the subclass's strptime method, I get back an instance of the subclass and not a datetime object, violating the return type constraint.
Activity
srittau commentedon Jan 23, 2023
PR welcome!