Skip to content

Commit 731f9ec

Browse files
Trying to fix lint error
1 parent 0e11fe7 commit 731f9ec

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ repos:
5353
exclude: \.py$
5454

5555
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
56-
rev: v2.13.0
56+
rev: v2.14.0
5757
hooks:
5858
- id: pretty-format-toml
5959
args: [--autofix]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ use_parentheses = true
7272

7373
[tool.mypy]
7474
check_untyped_defs = false
75+
explicit_package_bases = true
7576
ignore_missing_imports = true
77+
mypy_path = "src"
7678
no_implicit_optional = true
7779
plugins = [
7880
'pydantic.mypy'
@@ -82,8 +84,6 @@ strict_optional = true
8284
warn_redundant_casts = true
8385
warn_return_any = true
8486
warn_unused_configs = true
85-
explicit_package_bases = true
86-
mypy_path = "src"
8787

8888
[tool.poetry]
8989
include = [

src/datacustomcode/llm_gateway/types/generate_text_request_builder.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@
2323

2424

2525
class GenerateTextRequestBuilder:
26-
def __init__(self):
26+
def __init__(self) -> None:
2727
self._prompt = ""
2828
self._model_name = ""
2929
self._localization: Optional[Dict[str, Any]] = None
3030
self._tags: Optional[Dict[str, Any]] = None
3131

32-
def set_prompt(self, prompt: str):
32+
def set_prompt(self, prompt: str) -> "GenerateTextRequestBuilder":
3333
self._prompt = prompt
3434
return self
3535

36-
def set_model(self, model_name: str):
36+
def set_model(self, model_name: str) -> "GenerateTextRequestBuilder":
3737
self._model_name = model_name
3838
return self
3939

4040
def set_localization(
4141
self,
4242
localization: Optional[Dict[str, Any]] = None,
4343
locale: Optional[str] = None,
44-
):
44+
) -> "GenerateTextRequestBuilder":
4545
"""
4646
Set localization either from a dict or a simple locale string.
4747
@@ -62,7 +62,7 @@ def set_localization(
6262

6363
return self
6464

65-
def set_tags(self, tags: Dict[str, Any]):
65+
def set_tags(self, tags: Dict[str, Any]) -> "GenerateTextRequestBuilder":
6666
self._tags = tags
6767
return self
6868

0 commit comments

Comments
 (0)