Make some missing inbound properties optional
This commit is contained in:
parent
b51ce9bc96
commit
ce5006269f
@ -13,6 +13,8 @@
|
|||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
from attr import dataclass
|
from attr import dataclass
|
||||||
|
|
||||||
from ..openlink.open_link_type import OpenChannelUserPerm
|
from ..openlink.open_link_type import OpenChannelUserPerm
|
||||||
@ -36,12 +38,12 @@ class ChannelUserInfo(DisplayUserInfo):
|
|||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class NormalChannelUserInfo(ChannelUserInfo):
|
class NormalChannelUserInfo(ChannelUserInfo):
|
||||||
countryIso: str
|
|
||||||
accountId: int
|
accountId: int
|
||||||
statusMessage: str
|
statusMessage: str
|
||||||
linkedServices: str
|
linkedServices: str
|
||||||
ut: int
|
ut: int
|
||||||
suspended: bool
|
countryIso: Optional[str] = None # NOTE Made optional
|
||||||
|
suspended: Optional[bool] = None # NOTE Made optional
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
Loading…
Reference in New Issue
Block a user