pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/typeshed/pull/16067

.githubassets.com/assets/pull-requests-be6017ec12798e73.css" /> Override `__int__` and `__index__` for `bool` in `builtins.pyi` by jonathandung · Pull Request #16067 · python/typeshed · GitHub
Skip to content

Override __int__ and __index__ for bool in builtins.pyi - #16067

Open
jonathandung wants to merge 1 commit into
python:mainfrom
jonathandung:patch-6
Open

Override __int__ and __index__ for bool in builtins.pyi#16067
jonathandung wants to merge 1 commit into
python:mainfrom
jonathandung:patch-6

Conversation

@jonathandung

Copy link
Copy Markdown
Contributor

Such that the fact that they only return 1 for True and 0 for False may be represented without violating the Liskov Substitution Principle.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy