Skip to content

Commit 365d3bc

Browse files
committed
fix: use format = None
1 parent 8af76a9 commit 365d3bc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

mellea/backends/huggingface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"""
6868
TransformersTorchConfig = tuple[PreTrainedTokenizer, PreTrainedModel, torch.device]
6969

70-
format: int = 1 # typing this variable in order to shadow the global format function and ensure mypy checks for errors
70+
format: None = None # typing this variable in order to shadow the global format function and ensure mypy checks for errors
7171

7272

7373
@dataclasses.dataclass

mellea/backends/litellm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from mellea.stdlib.chat import Message
4141
from mellea.stdlib.requirement import ALoraRequirement
4242

43-
format: int = 1 # typing this variable in order to shadow the global format function and ensure mypy checks for errors
43+
format: None = None # typing this variable in order to shadow the global format function and ensure mypy checks for errors
4444

4545

4646
class LiteLLMBackend(FormatterBackend):

mellea/backends/ollama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from mellea.stdlib.chat import Message
3333
from mellea.stdlib.requirement import ALoraRequirement
3434

35-
format: int = 1 # typing this variable in order to shadow the global format function and ensure mypy checks for errors
35+
format: None = None # typing this variable in order to shadow the global format function and ensure mypy checks for errors
3636

3737

3838
class OllamaModelBackend(FormatterBackend):

mellea/backends/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
openai_ollama_batching_error = "json: cannot unmarshal array into Go struct field CompletionRequest.prompt of type string"
5353

54-
format: int = 1 # typing this variable in order to shadow the global format function and ensure mypy checks for errors
54+
format: None = None # typing this variable in order to shadow the global format function and ensure mypy checks for errors
5555

5656

5757
class _ServerType(Enum):

mellea/backends/watsonx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from mellea.stdlib.chat import Message
4141
from mellea.stdlib.requirement import ALoraRequirement # type: ignore
4242

43-
format: int = 1 # typing this variable in order to shadow the global format function and ensure mypy checks for errors
43+
format: None = None # typing this variable in order to shadow the global format function and ensure mypy checks for errors
4444

4545

4646
class WatsonxAIBackend(FormatterBackend):

0 commit comments

Comments
 (0)