Handle type-errors in upcoming pyright release

This commit is contained in:
Josh
2022-02-22 23:51:11 +10:00
committed by GitHub
parent ff90e7e747
commit a315786869
5 changed files with 12 additions and 11 deletions

View File

@ -185,7 +185,7 @@ class Embed:
type: EmbedType = 'rich',
url: MaybeEmpty[Any] = EmptyEmbed,
description: MaybeEmpty[Any] = EmptyEmbed,
timestamp: datetime.datetime = None,
timestamp: MaybeEmpty[datetime.datetime] = EmptyEmbed,
):
self.colour = colour if colour is not EmptyEmbed else color
@ -203,7 +203,7 @@ class Embed:
if self.url is not EmptyEmbed:
self.url = str(self.url)
if timestamp:
if timestamp is not EmptyEmbed:
self.timestamp = timestamp
@classmethod