mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
PY-16747, PY-16770 generated abstract methods preserve formatting and prefix of original docstring
This commit is contained in:
committed by
Mikhail Golubev
parent
9213f503e3
commit
fc8ea56374
@@ -0,0 +1,17 @@
|
||||
# coding=utf-8
|
||||
from abc import abstractmethod, ABCMeta
|
||||
|
||||
|
||||
class A:
|
||||
__metaclass__ = ABCMeta
|
||||
|
||||
@abstractmethod
|
||||
def m(self, x):
|
||||
u"""Юникод"""
|
||||
pass
|
||||
|
||||
|
||||
class B(A):
|
||||
def m(self, x):
|
||||
u"""Юникод"""
|
||||
return x
|
||||
Reference in New Issue
Block a user