Skip to content

Commit

Permalink
fix type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Jun 7, 2022
1 parent 0d50407 commit c90e232
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoregistry/regex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re
from typing import List

_to_snake_case_pattern1 = re.compile("(.)([A-Z][a-z]+)")
_to_snake_case_pattern2 = re.compile("__([A-Z])")
Expand All @@ -25,5 +26,5 @@ def to_snake_case(name: str) -> str:
return name.lower()


def key_split(s: str) -> list[str]:
def key_split(s: str) -> List[str]:
return s.replace("/", ".").split(".")

0 comments on commit c90e232

Please sign in to comment.