Skip to content

Commit 0468555

Browse files
committed
Add stub for colordict
1 parent fd47664 commit 0468555

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

buildconfig/stubs/pygame/color.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
import sys
2-
from typing import Any, Dict, Iterator, SupportsIndex, Tuple, Union, overload
2+
from typing import Any, Iterator, SupportsIndex, Tuple, Union, overload
33
from typing_extensions import deprecated # added in 3.13
44

5+
from pygame.colordict import THECOLORS as THECOLORS
56
from pygame.typing import ColorLike
67

78
if sys.version_info >= (3, 9):
89
from collections.abc import Collection
910
else:
1011
from typing import Collection
1112

12-
THECOLORS: Dict[str, Tuple[int, int, int, int]]
13-
1413
# Color confirms to the Collection ABC, since it also confirms to
1514
# Sized, Iterable and Container ABCs
1615
class Color(Collection[int]):
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from typing import Dict, Tuple
2+
3+
THECOLORS: Dict[str, Tuple[int, int, int, int]]

0 commit comments

Comments
 (0)