Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit52dedc3

Browse files
committed
put attribute docs in one place
1 parent8d7c330 commit52dedc3

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 ther 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)

[8]ページ先頭

©2009-2025 Movatter.jp