-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python stub with type hints. (#168)
- Loading branch information
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
class Schema: | ||
pass | ||
|
||
class SchemaBuilder: | ||
def add_text_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
tokenizer_name: str = "default", | ||
index_option: str = "position", | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_integer_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
indexed: bool = False, | ||
fast: bool = False, | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_float_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
indexed: bool = False, | ||
fast: bool = False, | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_unsigned_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
indexed: bool = False, | ||
fast: bool = False, | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_boolean_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
indexed: bool = False, | ||
fast: bool = False, | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_date_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
indexed: bool = False, | ||
fast: bool = False, | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_json_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
tokenizer_name: str = "default", | ||
index_option: str = "position", | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_facet_field( | ||
self, | ||
name: str, | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_bytes_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
indexed: bool = False, | ||
fast: bool = False, | ||
index_option: str = "position", | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def add_ip_addr_field( | ||
self, | ||
name: str, | ||
stored: bool = False, | ||
indexed: bool = False, | ||
fast: bool = False, | ||
) -> SchemaBuilder: | ||
pass | ||
|
||
def build(self) -> Schema: | ||
pass |