mirror of
https://github.com/etienne-hd/lbc-finder.git
synced 2026-04-23 17:35:36 +02:00
Initial release
This commit is contained in:
24
models/parameters.py
Normal file
24
models/parameters.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from typing import Optional, Union, List
|
||||
from lbc import Category, Region, Department, City, OwnerType
|
||||
|
||||
from typing import overload
|
||||
|
||||
class Parameters:
|
||||
@overload
|
||||
def __init__(
|
||||
self,
|
||||
url: Optional[str] = None,
|
||||
text: Optional[str] = None,
|
||||
category: Category = Category.TOUTES_CATEGORIES,
|
||||
locations: Optional[Union[List[Union[Region, Department, City]], Union[Region, Department, City]]] = None,
|
||||
limit: int = 35,
|
||||
limit_alu: int = 3,
|
||||
page: int = 1,
|
||||
owner_type: Optional[OwnerType] = None,
|
||||
shippable: Optional[bool] = None,
|
||||
search_in_title_only: bool = False,
|
||||
**kwargs
|
||||
): ...
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self._kwargs = kwargs
|
||||
Reference in New Issue
Block a user