mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 11:50:57 +07:00
23 lines
328 B
Python
23 lines
328 B
Python
from abc import ABCMeta, abstractmethod
|
|
|
|
|
|
class A:
|
|
__metaclass__ = ABCMeta
|
|
|
|
@abstractmethod
|
|
def m(self, x):
|
|
"""
|
|
Parameters:
|
|
x (int): number
|
|
"""
|
|
pass
|
|
|
|
|
|
class B(A):
|
|
def m(self, x):
|
|
"""
|
|
Parameters:
|
|
x (int): number
|
|
"""
|
|
return x
|