mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-01 18:31:53 +02:00
Fix warnings.
This commit is contained in:
parent
84f7e1cef5
commit
9f770a35cc
11 changed files with 47 additions and 36 deletions
|
@ -362,7 +362,7 @@ class Scheme:
|
|||
:return: color specification
|
||||
"""
|
||||
if color in self.colors:
|
||||
specification = self.colors[color]
|
||||
specification: Union[str, dict] = self.colors[color]
|
||||
if isinstance(specification, str):
|
||||
return Color(self.colors[color])
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue