SyntaxFix
Write A Post
Hire A Developer
Questions
I think the best way is to typing well your variables. You can do this by using the "typing" library.
Example:
from typing import NewType UserId = NewType ('UserId', int) some_id = UserId (524313)`
from typing import NewType UserId = NewType ('UserId', int) some_id = UserId (524313
See https://docs.python.org/3/library/typing.html