Skip to content

Commit 0552a66

Browse files
committed
Rename StrConcat to Concat
1 parent aee3dd3 commit 0552a66

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

tests/test_schemalike.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Member,
1111
NamedParam,
1212
Param,
13-
StrConcat,
13+
Concat,
1414
)
1515

1616
from . import format_helper
@@ -44,7 +44,7 @@ class Property:
4444
*[p for p in Iter[Attrs[T]]],
4545
*[
4646
Member[
47-
StrConcat[Literal["get_"], p.name],
47+
Concat[Literal["get_"], p.name],
4848
Callable[
4949
[
5050
Param[Literal["self"], Schemaify[T]],

tests/test_type_eval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
Param,
4747
Slice,
4848
SpecialFormEllipsis,
49-
StrConcat,
49+
Concat,
5050
UpdateClass,
5151
Uppercase,
5252
)
@@ -254,12 +254,12 @@ def test_type_strings_2():
254254

255255

256256
def test_type_strings_3():
257-
d = eval_typing(StrConcat[Literal["foo"], Literal["bar"]])
257+
d = eval_typing(Concat[Literal["foo"], Literal["bar"]])
258258
assert d == Literal["foobar"]
259259

260260

261261
def test_type_strings_4():
262-
d = eval_typing(StrConcat[Literal["a", "b"], Literal["c", "d"]])
262+
d = eval_typing(Concat[Literal["a", "b"], Literal["c", "d"]])
263263
assert d == Literal["ac"] | Literal["ad"] | Literal["bc"] | Literal["bd"]
264264

265265

typemap/type_eval/_eval_operators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
RaiseError,
4848
Slice,
4949
SpecialFormEllipsis,
50-
StrConcat,
50+
Concat,
5151
Uncapitalize,
5252
UpdateClass,
5353
Uppercase,
@@ -1198,7 +1198,7 @@ def func(*args, ctx):
11981198
_string_literal_op(Lowercase, op=str.lower)
11991199
_string_literal_op(Capitalize, op=str.capitalize)
12001200
_string_literal_op(Uncapitalize, op=lambda s: s[0:1].lower() + s[1:])
1201-
_string_literal_op(StrConcat, op=lambda s, t: s + t)
1201+
_string_literal_op(Concat, op=lambda s, t: s + t)
12021202

12031203

12041204
##################################################################

typemap/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class Uncapitalize[S: str]:
284284
pass
285285

286286

287-
class StrConcat[S: str, T: str]:
287+
class Concat[S: str, T: str]:
288288
pass
289289

290290

0 commit comments

Comments
 (0)