summaryrefslogtreecommitdiff
path: root/src/portal/py
diff options
context:
space:
mode:
Diffstat (limited to 'src/portal/py')
-rw-r--r--src/portal/py/post.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portal/py/post.py b/src/portal/py/post.py
index f173d0e..f83f1f0 100644
--- a/src/portal/py/post.py
+++ b/src/portal/py/post.py
@@ -63,7 +63,7 @@ def default_url_ext_guess(url: str) -> str:
class Url():
url: str
ext: str
- def __init__(self, url: str, ext: str = None) -> None:
+ def __init__(self, url: str, ext: Optional[str] = None) -> None:
self.url = url
if not ext:
ext = default_url_ext_guess(url)