| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
There was a problem hiding this comment.
LGTM, thank you!
Sorry, something went wrong.
| """This decorator marks a class as a disjoint base. | ||
|
|
||
| Child classes of a disjoint base cannot inherit from other disjoint bases that are | ||
| not parent classes of the disjoint base. |
There was a problem hiding this comment.
I think we need to say "parent or child" here, not just "parent", similar to the documentation wording.
Sorry, something went wrong.
| Type checkers do not allow child classes of a disjoint base ``C`` to | ||
| inherit from other disjoint bases that are not parent or child classes of ``C``. | ||
|
|
||
| For example: |
There was a problem hiding this comment.
I think we either need a double colon here or a .. testcode:: directive, for this example to render properly?
Sorry, something went wrong.
There was a problem hiding this comment.
Good call, double colon works
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
📚 Documentation preview 📚: https://cpython-previews--148640.org.readthedocs.build/