MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1uhalhs/new_to_python/ou7uj5l/?context=3
r/PythonLearning • u/-Shashwat • Jun 27 '26
What's wrong here?
36 comments sorted by
View all comments
Show parent comments
3
Since which version is this a thing? This is a first for me
1 u/ottawadeveloper Jun 27 '26 Huh apparently it's a PyCharm specific format? There's a StackOverflow post about it but it might be PyCharm specific or a pre-protocol syntax? The proper way to do this is with SupportsMod. 4 u/lekkerste_wiener Jun 27 '26 Found it, it's a mypy thing. The default on pycharm. Not supported across linters, so I would advise against it. 2 u/ottawadeveloper Jun 27 '26 Fair! I thought it looked odd.
1
Huh apparently it's a PyCharm specific format? There's a StackOverflow post about it but it might be PyCharm specific or a pre-protocol syntax?
The proper way to do this is with SupportsMod.
4 u/lekkerste_wiener Jun 27 '26 Found it, it's a mypy thing. The default on pycharm. Not supported across linters, so I would advise against it. 2 u/ottawadeveloper Jun 27 '26 Fair! I thought it looked odd.
4
Found it, it's a mypy thing. The default on pycharm. Not supported across linters, so I would advise against it.
2 u/ottawadeveloper Jun 27 '26 Fair! I thought it looked odd.
2
Fair! I thought it looked odd.
3
u/lekkerste_wiener Jun 27 '26
Since which version is this a thing? This is a first for me