Skip to content

Commit dcbb0d2

Browse files
committed
put attribute docs in one place
1 parent 8d7c330 commit dcbb0d2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

mypy/nodes.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -509,13 +509,6 @@ class FuncBase(Node):
509509
"_fullname",
510510
)
511511

512-
is_static: bool
513-
"""Is this a `@staticmethod` (explicit or implicit)?
514-
515-
This shouldn't be used to check that there's `self` or `cls` argument.
516-
Use :py:attr:`has_self_or_cls_argument` instead.
517-
"""
518-
519512
def __init__(self) -> None:
520513
super().__init__()
521514
# Type signature. This is usually CallableType or Overloaded, but it can be
@@ -527,6 +520,8 @@ def __init__(self) -> None:
527520
self.info = FUNC_NO_INFO
528521
self.is_property = False
529522
self.is_class = False
523+
# Is this a `@staticmethod` (explicit or implicit)?
524+
# Note: use has_self_or_cls_argument to check if there is `self` or `cls` argument
530525
self.is_static = False
531526
self.is_final = False
532527
self.is_explicit_override = False

0 commit comments

Comments
 (0)