Mod: add type annotations
This commit is contained in:
parent
0a52a6fcc9
commit
de7ebe2e51
1 changed files with 8 additions and 0 deletions
|
|
@ -1,7 +1,15 @@
|
|||
import tomlkit
|
||||
from tomlkit import TOMLDocument
|
||||
|
||||
|
||||
class Mod:
|
||||
__config: TOMLDocument
|
||||
__path: str
|
||||
__name: str
|
||||
__description: str
|
||||
__author: str
|
||||
__enabled: bool
|
||||
|
||||
@property
|
||||
def path(self) -> str:
|
||||
return self.__path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue