Skip to content

Commit 3d19e29

Browse files
committed
Remove getter deprecation warnings
These are used internally, but only the setters need to be deprecated
1 parent c36dd03 commit 3d19e29

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tcod/console.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,7 @@ def rgb(self) -> NDArray[Any]:
357357
console.print(x, y, string, fg=None)
358358
"""
359359

360-
@property
361-
@deprecated(_DEPRECATE_CONSOLE_DEFAULTS_MSG, category=FutureWarning)
360+
@property # Getters used internally, so only deprecate the setters.
362361
def default_bg(self) -> tuple[int, int, int]:
363362
"""Tuple[int, int, int]: The default background color.
364363
@@ -379,7 +378,6 @@ def default_bg(self, color: tuple[int, int, int]) -> None:
379378
self._console_data.back = color
380379

381380
@property
382-
@deprecated(_DEPRECATE_CONSOLE_DEFAULTS_MSG, category=FutureWarning)
383381
def default_fg(self) -> tuple[int, int, int]:
384382
"""Tuple[int, int, int]: The default foreground color.
385383
@@ -395,7 +393,6 @@ def default_fg(self, color: tuple[int, int, int]) -> None:
395393
self._console_data.fore = color
396394

397395
@property
398-
@deprecated(_DEPRECATE_CONSOLE_DEFAULTS_MSG, category=FutureWarning)
399396
def default_bg_blend(self) -> int:
400397
"""int: The default blending mode.
401398
@@ -410,7 +407,6 @@ def default_bg_blend(self, value: int) -> None:
410407
self._console_data.bkgnd_flag = value
411408

412409
@property
413-
@deprecated(_DEPRECATE_CONSOLE_DEFAULTS_MSG, category=FutureWarning)
414410
def default_alignment(self) -> int:
415411
"""int: The default text alignment.
416412

0 commit comments

Comments
 (0)