Replies: 2 comments
-
You can fix this by explicitly making class MyClass:
...
def hello(self, /, name: str) -> str: ... There has been some discussion in typing circles of making all |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you ! I was focusing on fixing my decorator, and forgot to look at the actual method |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, my goal is quite simple: to create a method decorator which uses the
self
attribute from the original method.Here is what wrote:
using pyright 1.1.377, I get the following error:
I've read several threads about typing positional-only parameters such as this one and that one but couldn't find an answer
Could you help me find the proper fix, please ?
Beta Was this translation helpful? Give feedback.
All reactions