Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

select_subclass selector does not select when specified class contains dot #56

@bmihelac

Description

@bmihelac

I apologise in advance if this is invalid or a beginner mistake.
Using query.select_subclass('something.Foo') in following definition does not yield results:

class Bar(something.Foo):
    pass

Workaround is to use select with pattern:

pattern = """
    class_def=classdef<
        'class' class_name=any '('
        (
            power<
                name="something"
                trailer<
                    any*
                    name="Foo"
                >
            >
        )
    >
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions