Skip to content

Commit

Permalink
fix: propertyになってない
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Feb 16, 2024
1 parent 63f6761 commit 99f0d55
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions mipac/models/lite/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,25 @@ def __init__(self, instance: IInstanceLite) -> None:
self.__instance: IInstanceLite = instance

@property
def name(self) -> str:
def name(self) -> str | None:
return self.__instance["name"]

def software_name(self) -> str:
@property
def software_name(self) -> str | None:
return self.__instance["software_name"]

def software_version(self) -> str:
@property
def software_version(self) -> str | None:
return self.__instance["software_version"]

def icon_url(self) -> str:
@property
def icon_url(self) -> str | None:
return self.__instance["icon_url"]

def favicon_url(self) -> str:
@property
def favicon_url(self) -> str | None:
return self.__instance["favicon_url"]

def theme_color(self) -> str:
@property
def theme_color(self) -> str | None:
return self.__instance["theme_color"]

0 comments on commit 99f0d55

Please sign in to comment.