mirror of
https://github.com/github/codeql.git
synced 2025-12-25 13:16:33 +01:00
16 lines
337 B
Python
16 lines
337 B
Python
|
|
#Abstract base class, but don't declare it.
|
|
class ImplicitAbstractClass(object):
|
|
|
|
def __add__(self, other):
|
|
raise NotImplementedError()
|
|
|
|
#Make abstractness explicit.
|
|
class ExplicitAbstractClass:
|
|
__metaclass__ = ABCMeta
|
|
|
|
@abstractmethod
|
|
def __add__(self, other):
|
|
raise NotImplementedError()
|
|
|