We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bbf97b commit 92cc6abCopy full SHA for 92cc6ab
tcod/ecs/__init__.py
@@ -4,12 +4,21 @@
4
5
import importlib.metadata
6
from collections import defaultdict
7
-from typing import TypeVar
+from typing import TYPE_CHECKING, TypeVar
8
9
from tcod.ecs.constants import IsA
10
from tcod.ecs.entity import Entity
11
from tcod.ecs.registry import Registry
12
-from tcod.ecs.registry import Registry as World
+
13
+if TYPE_CHECKING:
14
+ from typing_extensions import deprecated
15
16
+ @deprecated("Renamed to Registry.")
17
+ class World(Registry): # noqa: D101
18
+ pass
19
20
+else:
21
+ from tcod.ecs.registry import Registry as World
22
23
__all__ = (
24
"Entity",
0 commit comments