mirror of
https://github.com/github/codeql.git
synced 2026-01-12 06:00:23 +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()
|
|
|