FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: type hint for PeriodObject.code · python-webuntis/python-webuntis@a94a2ed · GitHub

Commit a94a2ed

Browse files
committed
fix: type hint for PeriodObject.code
1 parent ce1abba commit a94a2ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎webuntis/objects.pyi‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import datetime
2-
from typing import List, Tuple
2+
from typing import List, Tuple, Union
33

44
from webuntis import Session
55

@@ -141,7 +141,7 @@ class KlassenList(ListResult):
141141
class PeriodObject(ListItem):
142142

143143
@property
144-
def code(self) -> str:
144+
def code(self) -> Union[str, None]:
145145
...
146146

147147
@property

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL