Skip to content

Commit 43038b2

Browse files
committed
Move self import to doctests
1 parent cb573c2 commit 43038b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tcod/event.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
import numpy as np
9191
from typing_extensions import deprecated
9292

93-
import tcod.event
9493
import tcod.event_constants
9594
import tcod.sdl.joystick
9695
import tcod.sdl.sys
@@ -194,6 +193,7 @@ class Modifier(enum.IntFlag):
194193
195194
Example::
196195
196+
>>> import tcod.event
197197
>>> mod = tcod.event.Modifier(4098)
198198
>>> mod & tcod.event.Modifier.SHIFT # Check if any shift key is held.
199199
<Modifier.RSHIFT: 2>
@@ -2738,6 +2738,7 @@ def label(self) -> str:
27382738
27392739
Example::
27402740
2741+
>>> import tcod.event
27412742
>>> tcod.event.KeySym.F1.label
27422743
'F1'
27432744
>>> tcod.event.KeySym.BACKSPACE.label

0 commit comments

Comments
 (0)