Skip to content

Commit b8bd3ba

Browse files
authored
Add type hints for kwargs in config methods
1 parent ac3b225 commit b8bd3ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ingame/objects.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
def config(
5050
self,
51-
**kwargs
51+
**kwargs: Any
5252
) -> None:
5353
"""Configure object"""
5454

@@ -87,7 +87,7 @@ def __init__(
8787

8888
def config(
8989
self,
90-
**kwargs
90+
**kwargs: Any
9191
) -> None:
9292
"""Configure object"""
9393

@@ -126,12 +126,12 @@ def __init__(
126126

127127
img = tk.PhotoImage(file=image_path)
128128
self.image_obj = tk.Label(screen_obj.root, image=img, **kwargs)
129-
self.image_obj.image = img
129+
self.image_obj.image = img # type: ignore
130130
self.image_obj.pack(**{k: v for k, v in packargs.items() if v is not None})
131131

132132
def config(
133133
self,
134-
**kwargs
134+
**kwargs: Any
135135
) -> None:
136136
"""Configure object"""
137137

@@ -177,7 +177,7 @@ def get(
177177

178178
def config(
179179
self,
180-
**kwargs
180+
**kwargs: Any
181181
) -> None:
182182
"""Configure object"""
183183

0 commit comments

Comments
 (0)