PY-16747, PY-16770 generated abstract methods preserve formatting and prefix of original docstring

This commit is contained in:
Mikhail Golubev
2015-09-01 12:25:08 +03:00
committed by Mikhail Golubev
parent 9213f503e3
commit fc8ea56374
17 changed files with 239 additions and 138 deletions

View File

@@ -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