diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-05-31 03:55:14 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-05-31 03:55:14 +0200 |
commit | 6deb6ff39157006a3a9e86047a6f5c5e1421a4d4 (patch) | |
tree | c5aadc2086bdd9cdac29b37955e6f85144d93a34 /poezio/bookmarks.py | |
parent | ce9d59f19e2a4b2150de66bee1159931158e8009 (diff) | |
download | poezio-6deb6ff39157006a3a9e86047a6f5c5e1421a4d4.tar.gz poezio-6deb6ff39157006a3a9e86047a6f5c5e1421a4d4.tar.bz2 poezio-6deb6ff39157006a3a9e86047a6f5c5e1421a4d4.tar.xz poezio-6deb6ff39157006a3a9e86047a6f5c5e1421a4d4.zip |
Revert "Bookmarks: type bookmark method (local/remote)"
This reverts commit 91831e7903bac287be9e5403e56b07691151f1ab.
Breaks python 3.7 ..-. .- .. - -.-. .... .. . .-.
Diffstat (limited to 'poezio/bookmarks.py')
-rw-r--r-- | poezio/bookmarks.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/poezio/bookmarks.py b/poezio/bookmarks.py index 46f6dfab..d842d2dd 100644 --- a/poezio/bookmarks.py +++ b/poezio/bookmarks.py @@ -30,7 +30,7 @@ Adding a remote bookmark: import functools import logging -from typing import Optional, List, Literal, Union +from typing import Optional, List, Union from slixmpp import InvalidJID, JID from slixmpp.plugins.xep_0048 import Bookmarks, Conference, URL @@ -39,8 +39,6 @@ from poezio.config import config log = logging.getLogger(__name__) -Method = Union[Literal['local'], Literal['remote']] - class Bookmark: def __init__(self, jid: Union[JID, str], @@ -48,7 +46,7 @@ class Bookmark: autojoin=False, nick: Optional[str] = None, password: Optional[str] = None, - method: Method = 'local') -> None: + method='local') -> None: try: if isinstance(jid, JID): self._jid = jid @@ -84,7 +82,7 @@ class Bookmark: return self._method @method.setter - def method(self, value: Method): + def method(self, value: str): if value not in ('local', 'remote'): log.debug('Could not set bookmark storing method: %s', value) return |