Skip to content

Commit dc4dfb0

Browse files
committed
Fix terminal_colours stubs.
1 parent 072713e commit dc4dfb0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

consolekit/terminal_colours.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
# Includes modifications to colorama made by Bram Geelen in
6161
# https://github.com/tartley/colorama/pull/141/files
6262
#
63-
6463
# resolve_color_default, _ansi_re and strip_ansi based on
6564
# https://github.com/pallets/click
6665
# Copyright 2014 Pallets
@@ -82,6 +81,7 @@
8281
"CSI",
8382
"OSC",
8483
"BEL",
84+
"resolve_color_default",
8585
"code_to_chars",
8686
"set_title",
8787
"clear_screen",

consolekit/terminal_colours.pyi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,16 @@ See: http://en.wikipedia.org/wiki/ANSI_escape_code
5656
#
5757
# Includes modifications to colorama made by Bram Geelen in
5858
# https://github.com/tartley/colorama/pull/141/files
59+
#
60+
# resolve_color_default, _ansi_re and strip_ansi based on
61+
# https://github.com/pallets/click
62+
# Copyright 2014 Pallets
63+
# Distributed under the BSD 3-Clause license.
64+
#
5965

6066
# stdlib
6167
from abc import ABC
62-
from typing import List
68+
from typing import List, Optional
6369

6470
# 3rd party
6571
from typing_extensions import Final
@@ -72,6 +78,7 @@ fore_stack: List[str]
7278
back_stack: List[str]
7379
style_stack: List[str]
7480

81+
def resolve_color_default(color: Optional[bool] = None) -> Optional[bool]: ...
7582

7683
def code_to_chars(code) -> str: ...
7784
def set_title(title: str) -> str: ...

0 commit comments

Comments
 (0)