Skip to content

Commit

Permalink
Update names.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Dec 17, 2024
1 parent cfac817 commit 75b3fef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dotenv_linter/visitors/fst/names.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import re
from typing import ClassVar, List, final
from typing.re import Pattern

from dotenv_linter.constants import NAMES_BLACKLIST
from dotenv_linter.grammar.fst import Assign, Module, Name
Expand Down Expand Up @@ -63,7 +62,7 @@ def _save_names(self, node: Module) -> None:
class NameVisitor(BaseFSTVisitor):
"""Finds wrong names."""

_correct_name: ClassVar[Pattern] = re.compile('[A-Z_]+[A-Z0-9_]*')
_correct_name: ClassVar[re.Pattern[str]] = re.compile('[A-Z_]+[A-Z0-9_]*')

def visit_name(self, node: Name) -> None:
"""
Expand Down

0 comments on commit 75b3fef

Please sign in to comment.