Skip to content

Commit b6b6a33

Browse files
committed
chore: move the thing
1 parent 50ee58a commit b6b6a33

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

disnake/utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,12 @@ def humanize_list(values: List[str], combine: str) -> str:
13591359
return f" {combine} ".join(values)
13601360

13611361

1362+
# Similar to typing.assert_never, but returns instead of raising (i.e. has no runtime effect).
1363+
# This is only to avoid "unreachable code", which pyright doesn't type-check.
1364+
def assert_never(arg: Never, /) -> None:
1365+
pass
1366+
1367+
13621368
# n.b. This must be imported and used as @ _overload_with_permissions (without the space)
13631369
# this is used by the libcst parser and has no runtime purpose
13641370
# it is merely a marker not unlike pytest.mark
@@ -1369,9 +1375,3 @@ def _overload_with_permissions(func: T) -> T:
13691375
# this is used as a marker for functions or classes that were created by codemodding
13701376
def _generated(func: T) -> T:
13711377
return func
1372-
1373-
1374-
# Similar to typing.assert_never, but returns instead of raising (i.e. has no runtime effect).
1375-
# This is only to avoid "unreachable code", which pyright doesn't type-check.
1376-
def assert_never(arg: Never, /) -> None:
1377-
pass

0 commit comments

Comments
 (0)