You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked there are no open bugs referencing the same bug or problem
Description
fromtypingimportoverloadclassTest:
@overload# @staticmethoddefblah(param: str) ->str:
# when @staticmethod is commented out, the line below wants to be refactored to Ellipsis# which actually causes the overload function to break because Ellipsis is not the same as `...`# the refactoring itself is fine, which wants to make the param into `self`, but the `...` -> `Ellipsis` is the bug.# this is a weird way to find this bug, I will admit.
...
@overload@staticmethoddefblah(param: int) ->str:
...
@staticmethoddefblah(param: str|int) ->str:
returnstr(param)
Debug Information
IDE Version:
Version: 1.71.0 (Universal)
Commit: 784b0177c56c607789f9638da7b6bf3230d47a8c
Date: 2022-09-01T07:25:38.437Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 22.1.0
Sandboxed: No
Sourcery Version:
v0.12.7
The text was updated successfully, but these errors were encountered:
Checklist
Description
Debug Information
IDE Version:
Version: 1.71.0 (Universal)
Commit: 784b0177c56c607789f9638da7b6bf3230d47a8c
Date: 2022-09-01T07:25:38.437Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 22.1.0
Sandboxed: No
Sourcery Version:
v0.12.7
The text was updated successfully, but these errors were encountered: