summaryrefslogtreecommitdiff
path: root/pylint/checkers/base/name_checker
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/base/name_checker')
-rw-r--r--pylint/checkers/base/name_checker/checker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pylint/checkers/base/name_checker/checker.py b/pylint/checkers/base/name_checker/checker.py
index 616067d1f..c2b615a48 100644
--- a/pylint/checkers/base/name_checker/checker.py
+++ b/pylint/checkers/base/name_checker/checker.py
@@ -41,7 +41,9 @@ DEFAULT_PATTERNS = {
"typevar": re.compile(
r"^_{0,2}(?!T[A-Z])(?:[A-Z]+|(?:[A-Z]+[a-z]+)+T?(?<!Type))(?:_co(?:ntra)?)?$"
),
- "typealias": re.compile(r"^_{0,2}(?!T[A-Z]|Type)[A-Z]+[a-z]+(?:[A-Z][a-z]+)*$"),
+ "typealias": re.compile(
+ r"^_{0,2}(?!T[A-Z]|Type)[A-Z]+[a-z0-9]+(?:[A-Z][a-z0-9]+)*$"
+ ),
}
BUILTIN_PROPERTY = "builtins.property"