mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
22 lines
327 B
Python
22 lines
327 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 |