Skip to content
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

Docs: Docstrings in checker.py, ast_helpers.py #16908

Merged
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 12 additions & 5 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2148,11 +2148,18 @@ def check_override(
"""Check a method override with given signatures.

Arguments:
override: The signature of the overriding method.
original: The signature of the original supertype method.
name: The name of the subtype. This and the next argument are
only used for generating error messages.
supertype: The name of the supertype.
override: The signature of the overriding method.
original: The signature of the original supertype method.
name: The name of the overriding method.
Used for generating error messages only.
hauntsaninja marked this conversation as resolved.
Show resolved Hide resolved
name_in_super: The name of the overridden in the superclass.
Used for generating error messages only.
supertype: The name of the supertype.
original_class_or_static: Indicates whether the original method (from the superclass)
is either a class method or a static method.
override_class_or_static: Indicates whether the overriding method (from the subclass)
is either a class method or a static method.
node: Context node.
"""
# Use boolean variable to clarify code.
fail = False
Expand Down
1 change: 1 addition & 0 deletions mypyc/irbuild/ast_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def maybe_process_conditional_comparison(
do nothing and return False.

Args:
self: IR form Builder
e: Arbitrary expression
true: Branch target if comparison is true
false: Branch target if comparison is false
Expand Down