https://bugs.kde.org/show_bug.cgi?id=454545

            Bug ID: 454545
           Summary: Python classes with metaclass are not detected by the
                    Symbols Viewer
           Product: kate
           Version: 21.12.3
          Platform: Kubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: alain@laporte.paris
  Target Milestone: ---

SUMMARY

A Python class declaration like:

class AustralianPhilosopher(Philosopher, default_name="Bruce"):

Is not detected by the Symbols Viewer and methods of this class are associated
to the previously detected class.

STEPS TO REPRODUCE
1. Create a file like:

class Philosopher:
    def __init_subclass__(cls, default_name):
        cls.default_name = default_name

class AustralianPhilosopher(Philosopher, default_name="Bruce"):
    def toto():
        pass

2. Open the Symbols Viewer

OBSERVED RESULT

Class AustralianPhilosopher is not detected and method foo is associated to the
class Philosopher.

EXPECTED RESULT

Class AustralianPhilosopher is detected and method foo is associated to the
class AustralianPhilosopher.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION

An issue with a patch was created on Gitlab =>
https://invent.kde.org/utilities/kate/-/issues/75

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to