Skip to content

Commit

Permalink
change | to Union (py 39)
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch3712 committed Nov 20, 2024
1 parent 11d056b commit ac5233a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract_thinker/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self):
self.masking_strategy: Optional[AbstractMaskingStrategy] = None
self.llm: Optional[LLM] = None

def add_masking_llm(self, model: Optional[str | LLM] = None, strategy: Optional[MaskContract] = MaskingStrategy.SIMPLE_PLACEHOLDER):
def add_masking_llm(self, model: Optional[Union[str, LLM]] = None, strategy: Optional[MaskContract] = MaskingStrategy.SIMPLE_PLACEHOLDER):
if isinstance(model, LLM):
self.llm = model
elif model is not None:
Expand Down

0 comments on commit ac5233a

Please sign in to comment.