Skip to content

Commit

Permalink
Fix ruff, update CHANGELOGS (#1166)
Browse files Browse the repository at this point in the history
* Fix ruff

Signed-off-by: xadupre <[email protected]>

* fix changelogs

Signed-off-by: xadupre <[email protected]>

---------

Signed-off-by: xadupre <[email protected]>
  • Loading branch information
xadupre authored Feb 20, 2025
1 parent 58b62c6 commit 11ee203
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 1.19.0

* Add support to sklearn TargetEncoder
[#1137](https://github.com/onnx/sklearn-onnx/issues/1137)
* Fixes missing WhiteKernel with return_std=True #1163
[#1163](https://github.com/onnx/sklearn-onnx/issues/1163)
* Fix empty column selector
Expand Down
2 changes: 1 addition & 1 deletion skl2onnx/_supported_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def _get_sklearn_operator_name(model_type):
:return: A string which stands for the type of the input model in
our conversion framework
"""
if model_type not in sklearn_operator_name_map: # noqa: SIM401
if model_type not in sklearn_operator_name_map:
# No proper operator name found, it means a local operator.
alias = None
else:
Expand Down
2 changes: 1 addition & 1 deletion skl2onnx/common/_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def add_node(
def target_opset_any_domain(self, domain):
target_opset = self.target_opset_all
if isinstance(target_opset, dict):
if domain in target_opset: # noqa: SIM401
if domain in target_opset:
to = target_opset[domain]
else:
to = None
Expand Down

0 comments on commit 11ee203

Please sign in to comment.