Skip to content

Commit

Permalink
Add ref to upstream issue at janluke/cloup#177
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Feb 13, 2024
1 parent fd51ad8 commit 1c53eb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion click_extra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def cache(user_function):
# File ".../python3.11/site-packages/cloup/_util.py", line 128, in __setattr__
# raise Exception("you can't set attributes on this class")
# Exception: you can't set attributes on this class
# This has been reported upstream at: https://github.com/janluke/cloup/issues/177
# "Color",
"color_option",
"ColorOption",
Expand Down Expand Up @@ -226,5 +227,9 @@ def cache(user_function):
"""Expose all of Click, Cloup and Click Extra.
.. note::
The content of ``__all__` is checked and enforced in unittests.
The content of ``__all__`` is checked and enforced in unittests.
.. todo::
Test ruff __all__ formatting capabilities. And if good enough, remove ``__all__``
checks in unittests.
"""
1 change: 1 addition & 0 deletions click_extra/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def fetch_root_members(module):
# File ".../python3.11/site-packages/cloup/_util.py", line 128, in __setattr__
# raise Exception("you can't set attributes on this class")
# Exception: you can't set attributes on this class
# This has been reported upstream at: https://github.com/janluke/cloup/issues/177
cloup_members.remove("Color")

tree = ast.parse(Path(__file__).parent.joinpath("../__init__.py").read_bytes())
Expand Down

0 comments on commit 1c53eb3

Please sign in to comment.