Skip to content

Commit b51a968

Browse files
authored
fix: Allow T-prefixed TypeVars in pylint config (google#194)
1 parent caa0462 commit b51a968

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ good-names=i,j,k,ex,Run,_,id,ok
133133

134134
# Good variable names regexes, separated by a comma. If names match any regex,
135135
# they will always be accepted
136-
good-names-rgxs=
136+
good-names-rgxs=^T[A-Z][a-zA-Z]*$
137137

138138
# Include a hint for the correct naming format with invalid-name.
139139
include-naming-hint=no

langextract/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
from __future__ import annotations
2222

2323
# Re-export everything from core.data for backward compatibility
24-
# pylint: disable=wildcard-import,unused-wildcard-import
24+
# pylint: disable=unused-wildcard-import
2525
from langextract.core.data import *

langextract/tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
from __future__ import annotations
2222

2323
# Re-export everything from core.tokenizer for backward compatibility
24-
# pylint: disable=wildcard-import,unused-wildcard-import
24+
# pylint: disable=unused-wildcard-import
2525
from langextract.core.tokenizer import *

0 commit comments

Comments
 (0)