Skip to content
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

MaterialButtonsPanel.poll issue #269

Closed
Andrej730 opened this issue Jun 24, 2024 · 2 comments
Closed

MaterialButtonsPanel.poll issue #269

Andrej730 opened this issue Jun 24, 2024 · 2 comments
Assignees
Labels

Comments

@Andrej730
Copy link
Contributor

properties_material/__init__.pyi's MaterialButtonsPanel.poll is missing @classmethod and using self as a first argument instead of cls.

image

So inheriting from it leads to issues:

from bl_ui.properties_material import MaterialButtonsPanel
import bpy

class PT_style(MaterialButtonsPanel, bpy.types.Panel):
    # Method "poll" overrides class "MaterialButtonsPanel" in an incompatible manner
    # Base method is declared as an instance method but override is not
    @classmethod
    def poll(cls, context):
        # Argument missing for parameter "context"
        return super().poll(context)
@Road-hog123
Copy link
Contributor

I suspect this may be related to the Python-source processing issues demonstrated in #265, #266, #275 & #276.

@nutti nutti self-assigned this Jul 14, 2024
@nutti nutti added the bug label Jul 14, 2024
@nutti
Copy link
Owner

nutti commented Jul 15, 2024

This issue is now fixed.

@nutti nutti closed this as completed Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants