Skip to content

Commit

Permalink
Docs: docstrings in checker.py, ast_helpers.py (#16908)
Browse files Browse the repository at this point in the history
  • Loading branch information
nautics889 committed Apr 8, 2024
1 parent 732d98e commit 3ff6e47
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
17 changes: 12 additions & 5 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2166,11 +2166,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 primarily for generating error messages.
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

0 comments on commit 3ff6e47

Please sign in to comment.