diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/python/parso/py3/tests/normalizer_issue_files/E72.py | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/parso/py3/tests/normalizer_issue_files/E72.py')
-rw-r--r-- | contrib/python/parso/py3/tests/normalizer_issue_files/E72.py | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/contrib/python/parso/py3/tests/normalizer_issue_files/E72.py b/contrib/python/parso/py3/tests/normalizer_issue_files/E72.py index 2e9ef9151d..545348e60b 100644 --- a/contrib/python/parso/py3/tests/normalizer_issue_files/E72.py +++ b/contrib/python/parso/py3/tests/normalizer_issue_files/E72.py @@ -1,79 +1,79 @@ -#: E721:3 -if type(res) == type(42): - pass -#: E721:3 -if type(res) != type(""): - pass - -import types - -if res == types.IntType: - pass - -import types - -#: E721:3 -if type(res) is not types.ListType: - pass -#: E721:7 E721:35 -assert type(res) == type(False) or type(res) == type(None) -#: E721:7 -assert type(res) == type([]) -#: E721:7 -assert type(res) == type(()) -#: E721:7 -assert type(res) == type((0,)) -#: E721:7 -assert type(res) == type((0)) -#: E721:7 -assert type(res) != type((1,)) -#: E721:7 -assert type(res) is type((1,)) -#: E721:7 -assert type(res) is not type((1,)) - -# Okay -#: E402 -import types - -if isinstance(res, int): - pass -if isinstance(res, str): - pass -if isinstance(res, types.MethodType): - pass - -#: E721:3 E721:25 -if type(a) != type(b) or type(a) == type(ccc): - pass -#: E721 -type(a) != type(b) -#: E721 -1 != type(b) -#: E721 -type(b) != 1 -1 != 1 - -try: - pass -#: E722 -except: - pass -try: - pass -except Exception: - pass -#: E722 -except: - pass -# Okay -fake_code = """" -try: - do_something() -except: - pass -""" -try: - pass -except Exception: - pass +#: E721:3 +if type(res) == type(42): + pass +#: E721:3 +if type(res) != type(""): + pass + +import types + +if res == types.IntType: + pass + +import types + +#: E721:3 +if type(res) is not types.ListType: + pass +#: E721:7 E721:35 +assert type(res) == type(False) or type(res) == type(None) +#: E721:7 +assert type(res) == type([]) +#: E721:7 +assert type(res) == type(()) +#: E721:7 +assert type(res) == type((0,)) +#: E721:7 +assert type(res) == type((0)) +#: E721:7 +assert type(res) != type((1,)) +#: E721:7 +assert type(res) is type((1,)) +#: E721:7 +assert type(res) is not type((1,)) + +# Okay +#: E402 +import types + +if isinstance(res, int): + pass +if isinstance(res, str): + pass +if isinstance(res, types.MethodType): + pass + +#: E721:3 E721:25 +if type(a) != type(b) or type(a) == type(ccc): + pass +#: E721 +type(a) != type(b) +#: E721 +1 != type(b) +#: E721 +type(b) != 1 +1 != 1 + +try: + pass +#: E722 +except: + pass +try: + pass +except Exception: + pass +#: E722 +except: + pass +# Okay +fake_code = """" +try: + do_something() +except: + pass +""" +try: + pass +except Exception: + pass |