Skip to content

Commit

Permalink
fix: ignore some classes for slotscheck due to Python 3.10 dataclasse…
Browse files Browse the repository at this point in the history
…s behaviour
  • Loading branch information
tandemdude committed Aug 10, 2024
1 parent 6a6b58a commit e9118f9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,20 @@ convention = "google"
strict-imports = true
require-superclass = true
require-subclass = true
# The classes from ChannelSelect to Context are only due to a dataclasses slots
# bug with Python 3.10 - they can be removed once the minimum Python version is bumped to 3.11
exclude-classes = """
(
^lightbulb\\.commands\\.commands:CommandMeta$ |
^lightbulb\\.context:RestAutocompleteContext$ |
^lightbulb\\.context:RestContext$
^lightbulb\\.context:RestContext$ |
^lightbulb\\.components\\.menus:ChannelSelect$ |
^lightbulb\\.components\\.menus:MentionableSelect$ |
^lightbulb\\.components\\.menus:MenuContext$ |
^lightbulb\\.components\\.menus:RoleSelect$ |
^lightbulb\\.components\\.menus:TextSelect$ |
^lightbulb\\.components\\.menus:UserSelect$ |
^lightbulb\\.context:Context$
)
"""

Expand Down

0 comments on commit e9118f9

Please sign in to comment.