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

Fixdmypy suggest interaction with__new__#18966

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
put attribute docs in one place
  • Loading branch information
@hauntsaninja
hauntsaninja committedJun 18, 2025
commitdcbb0d22dead6bb71cd45193e4b355add18b9036
9 changes: 2 additions & 7 deletionsmypy/nodes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -509,13 +509,6 @@ class FuncBase(Node):
"_fullname",
)

is_static: bool
"""Is this a `@staticmethod` (explicit or implicit)?

This shouldn't be used to check that there's `self` or `cls` argument.
Use :py:attr:`has_self_or_cls_argument` instead.
"""

def __init__(self) -> None:
super().__init__()
# Type signature. This is usually CallableType or Overloaded, but it can be
Expand All@@ -527,6 +520,8 @@ def __init__(self) -> None:
self.info = FUNC_NO_INFO
self.is_property = False
self.is_class = False
# Is this a `@staticmethod` (explicit or implicit)?
# Note: use has_self_or_cls_argument to check if there is `self` or `cls` argument
self.is_static = False
self.is_final = False
self.is_explicit_override = False
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp