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 ea6d028 commit d48de23Copy full SHA for d48de23
tcod/ecs/entity.py
@@ -82,7 +82,7 @@ def world(self) -> Registry:
82
"""
83
return self.registry
84
85
- def __new__(cls, registry: Registry, uid: object = object) -> Entity: # noqa: PYI034
+ def __new__(cls, registry: Registry, uid: object = object) -> Self | Entity:
86
"""Return a unique entity for the given `registry` and `uid`.
87
88
If an entity already exists with a matching `registry` and `uid` then that entity is returned.
0 commit comments