reformat a bit
This commit is contained in:
parent
6c89aabbb5
commit
4dcb2fa643
@ -1,9 +1,8 @@
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from typing import Tuple, List, Set, Dict, Type
|
from typing import Tuple, List, Set, Dict, Type, Union
|
||||||
|
|
||||||
from . import page_attributes
|
from . import page_attributes
|
||||||
from ..abstract import Page
|
from ..abstract import Page
|
||||||
|
|
||||||
from ...objects import Options, DatabaseObject
|
from ...objects import Options, DatabaseObject
|
||||||
|
|
||||||
|
|
||||||
@ -119,6 +118,10 @@ class Search:
|
|||||||
if not dry:
|
if not dry:
|
||||||
self.search(query)
|
self.search(query)
|
||||||
|
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return self._current_option.__repr__()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def next_options(self) -> MultiPageOptions:
|
def next_options(self) -> MultiPageOptions:
|
||||||
mpo = MultiPageOptions(
|
mpo = MultiPageOptions(
|
||||||
@ -145,6 +148,3 @@ class Search:
|
|||||||
|
|
||||||
for page in self.pages:
|
for page in self.pages:
|
||||||
self._current_option[page] = page.search_by_query(query=query)
|
self._current_option[page] = page.search_by_query(query=query)
|
||||||
|
|
||||||
def __repr__(self):
|
|
||||||
return self._current_option.__repr__()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user