Skip to content

Commit

Permalink
Remove getter deprecation warnings
Browse files Browse the repository at this point in the history
These are used internally, but only the setters need to be deprecated
  • Loading branch information
HexDecimal committed Nov 13, 2024
1 parent c36dd03 commit 3d19e29
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tcod/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,7 @@ def rgb(self) -> NDArray[Any]:
console.print(x, y, string, fg=None)
"""

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

@property
@deprecated(_DEPRECATE_CONSOLE_DEFAULTS_MSG, category=FutureWarning)
def default_fg(self) -> tuple[int, int, int]:
"""Tuple[int, int, int]: The default foreground color.
Expand All @@ -395,7 +393,6 @@ def default_fg(self, color: tuple[int, int, int]) -> None:
self._console_data.fore = color

@property
@deprecated(_DEPRECATE_CONSOLE_DEFAULTS_MSG, category=FutureWarning)
def default_bg_blend(self) -> int:
"""int: The default blending mode.
Expand All @@ -410,7 +407,6 @@ def default_bg_blend(self, value: int) -> None:
self._console_data.bkgnd_flag = value

@property
@deprecated(_DEPRECATE_CONSOLE_DEFAULTS_MSG, category=FutureWarning)
def default_alignment(self) -> int:
"""int: The default text alignment.
Expand Down

0 comments on commit 3d19e29

Please sign in to comment.