When I run pylint on a code like this one:
some_variable = 3
def do_something():
pass
if __name__ == '__main__':
do_something()
I get:
file.py:2:0: C0103: Constant name "some_variable" doesn't conform to UPPER_CASE naming style (invalid-name)
However, if I use typing to specify the type of the variable:
some_variable: int = 3
The invalid-name is not triggered anymore.
Furthermore, I can use any name, like SOMEVARIABLE
, someVariable
or SOME_VARIABLE
and it won't be triggered.
Why does this happen?