From e9118f995f7b6858d0317e26f60dbfa7862c3c53 Mon Sep 17 00:00:00 2001 From: tandemdude <43570299+tandemdude@users.noreply.github.com> Date: Sat, 10 Aug 2024 20:18:20 +0100 Subject: [PATCH] fix: ignore some classes for slotscheck due to Python 3.10 dataclasses behaviour --- pyproject.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7826cac5..18892baf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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$ ) """