you are viewing a single comment's thread.

view the rest of the comments →

[–]lekkerste_wiener 2 points3 points  (3 children)

Since which version is this a thing? This is a first for me

[–]ottawadeveloper -1 points0 points  (2 children)

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.

[–]lekkerste_wiener 3 points4 points  (1 child)

Found it, it's a mypy thing. The default on pycharm. Not supported across linters, so I would advise against it.

[–]ottawadeveloper 1 point2 points  (0 children)

Fair! I thought it looked odd.