Skip to content

Enable RUF023 slots sorting rule #13125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ extend-safe-fixes = [
"UP036", # Remove unnecessary `sys.version_info` blocks
]
ignore = [
# TODO: Ruff 0.8.0 added sorting of __all__ and __slots_. Validate whether we want this in stubs
# TODO: Ruff 0.8.0 added sorting of __all__. Validate whether we want this in stubs
"RUF022",
"RUF023",

###
# Rules that can conflict with the formatter (Black)
Expand Down
14 changes: 7 additions & 7 deletions stubs/tensorflow/tensorflow/saved_model/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ class LoadOptions:

class SaveOptions:
__slots__ = (
"namespace_whitelist",
"save_debug_info",
"function_aliases",
"experimental_debug_stripper",
"experimental_io_device",
"experimental_variable_policy",
"experimental_custom_gradients",
"experimental_debug_stripper",
"experimental_image_format",
"experimental_skip_saver",
"experimental_io_device",
"experimental_sharding_callback",
"experimental_skip_saver",
"experimental_variable_policy",
"extra_tags",
"function_aliases",
"namespace_whitelist",
"save_debug_info",
)
namespace_whitelist: list[str]
save_debug_info: bool
Expand Down