Skip to content

Commit c80f966

Browse files
committed
Fix broken docstring, add note on add_watch errors.
The `:` caused Sphinx to think this was a type description.
1 parent c6c7460 commit c80f966

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tcod/event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@ def add_watch(callback: _EventCallback) -> _EventCallback:
10921092
.. warning::
10931093
How uncaught exceptions in a callback are handled is not currently defined by tcod.
10941094
They will likely be handled by :any:`sys.unraisablehook`.
1095+
This may be later changed to pass the excpetion to a :any`tcod.event.get` or :any:`tcod.event.wait` call.
10951096
10961097
Args:
10971098
callback (Callable[[Event], None]):

tcod/sdl/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def height(self) -> int:
7373

7474
@property
7575
def alpha_mod(self) -> int:
76-
"""Texture alpha modulate value, can be set to: 0 - 255."""
76+
"""Texture alpha modulate value, can be set to 0 - 255."""
7777
out = ffi.new("uint8_t*")
7878
_check(lib.SDL_GetTextureAlphaMod(self.p, out))
7979
return int(out[0])

0 commit comments

Comments
 (0)