Skip to content

Commit

Permalink
Fix linting message
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrl authored and silvanocerza committed Feb 5, 2024
1 parent 9181caa commit ee0a7c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "CohereGenerator":
"""
init_params = data.get("init_parameters", {})
streaming_callback = None
if "streaming_callback" in init_params and init_params["streaming_callback"]:
if "streaming_callback" in init_params and init_params["streaming_callback"] is not None:
parts = init_params["streaming_callback"].split(".")
module_name = ".".join(parts[:-1])
function_name = parts[-1]
Expand Down

0 comments on commit ee0a7c2

Please sign in to comment.