Open realxoman opened 11 months ago
Seems like the Message gets LIST_QUERY as an abstract method. i.e. Message.__abstractmethods__
This provides the same error. Might be related somehow
from abc import ABC, abstractmethod
class Test(ABC):
@abstractmethod
def LIST_QUERY(self):
pass
class Message(Test):
pass
a = Message()
Diving into the abc source code a bit: https://github.com/python/cpython/blob/main/Lib/abc.py
I have a strange problem with PyPika when I use abstract classes.
TypeError: Can't instantiate abstract class Message with abstract method LIST_QUERY
When I remove Test from class args it work correctly. What is the problem?