-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can create a method in a box that overwrite a key #222
Comments
I don't have a section of the docs for other devs subclassing and what that could mean, but for this case you'll need to expaind the https://github.com/cdgriffith/Box/blob/master/box/box.py#L148 Here is how I do it with a subclass of box https://github.com/cdgriffith/Box/blob/master/box/config_box.py#L20 |
that's exactly what I needed, thanks a lot. I assume I'll leave the issue open for documenting |
I was playing with the lib by subclassing it and I founds some funny behaviour. I know it's not the intended usage but though that was worth reporting. Feel free to close it if you think it's useless:
I didn't know what to expect but it's the method that have priority over the key.
but the key still exist
I think it would be handy to at least raise a warning ?
The text was updated successfully, but these errors were encountered: