Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1686f68e authored by PAPERMAN Charles's avatar PAPERMAN Charles
Browse files

Merge branch 'hotfix/typing_get_of_style' into 'master'

Hotfix/typing get of style

See merge request !89
parents 16b32a14 44d3545d
Branches
No related tags found
1 merge request!89Hotfix/typing get of style
Pipeline #898807 passed
......@@ -41,7 +41,7 @@ Tknzr = TypeVar("Tknzr", bound="Tokenizer")
def name_and_defer(
func: Callable[Concatenate[Tknzr, P], TkTree]
func: Callable[Concatenate[Tknzr, P], TkTree],
) -> Callable[Concatenate[Tknzr, P], TkTree]:
def f(
tokenizer: Tknzr,
......
......@@ -70,7 +70,7 @@ class StandardStyle(ChainMap[str, Callable[[str], str]]):
@overload
def get(
self, key: qbformatting.token._TokenType | str, /
self, key: qbformatting.token._TokenType | str, /, default: None = None
) -> Callable[[str], str] | None:
...
......@@ -79,7 +79,7 @@ class StandardStyle(ChainMap[str, Callable[[str], str]]):
self,
key: qbformatting.token._TokenType | str,
/,
default: T | Callable[[str], str],
default: T,
) -> Callable[[str], str] | T:
...
......
......@@ -72,7 +72,7 @@ class Initiate(TCLQuery):
return dict(
isolation_level=self.isolation_level,
read_only=self.read_only,
**super()._get_subtokenize_kwargs(tokenizer)
**super()._get_subtokenize_kwargs(tokenizer),
)
def set_isolation_level(self, isolation_level):
......
......@@ -438,7 +438,7 @@ class TestCase:
(T, colv.gt(colk)),
*when[2:],
(T, colk.not_()),
else_=colk.iff(colk, colv)
else_=colk.iff(colk, colv),
)
col_expected = qbcolumns.Case(
(T, colv.isnull()),
......@@ -447,7 +447,7 @@ class TestCase:
(T, colv.gt(colv)),
*when[2:],
(T, colv.not_()),
else_=colv.iff(colv, colv)
else_=colv.iff(colv, colv),
)
col_substitued = col.substitute(substitutions)
......
......@@ -63,7 +63,7 @@ class TypeDispatch(Generic[P, R, Tknzr]):
if func is None:
def decor(
f: Callable[Concatenate[Tknzr, type, P], R]
f: Callable[Concatenate[Tknzr, type, P], R],
) -> Callable[Concatenate[Tknzr, type, P], R]:
return self.register(cls, f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment