summaryrefslogtreecommitdiff
path: root/tests/functional/ext/redefined_variable_type/regression_newtype_fstring.py
blob: d06bf4751096c3361d655bf61146734e55c55ba6 (plain)
1
2
3
4
5
6
7
8
9
"""Regression test for issue 5770: NewType created with f-string
See: https://github.com/pylint-dev/pylint/issues/5770
"""
from typing import NewType

def make_new_type(suffix):
    """Dynamically create a NewType with `suffix`"""
    new_type = NewType(f'IntRange_{suffix}', suffix)
    print(new_type)