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 see we have some type hints that's been continuously added as mentioned at #373.
As the factory pattern has the constrain of both classes having to implement a localize method, I thought it might be a good idea to reinforce this constrain by using Protocol.
Hi 👋🏽
I see we have some type hints that's been continuously added as mentioned at #373.
As the factory pattern has the constrain of both classes having to implement a
localize
method, I thought it might be a good idea to reinforce this constrain by using Protocol.I'd gladly implement this if it's okay.
Here's the PEP-0544 and the Python docs for Protocols.
The text was updated successfully, but these errors were encountered: