Files
Semyon Proshev 60a3777709 Update custom type to inherit types to mimic (PY-28150)
Convert incoming types to instances or definitions depending on instance flag
2018-03-02 19:45:36 +03:00

38 lines
551 B
Python

class <warning descr="Old-style class">A</warning>:
def foo(self):
pass
class <warning descr="Old-style class, because all classes from whom it inherits are old-style">B</warning>(A):
pass
class C(A, B, object):
pass
class D(C):
pass
class E:
__metaclass__ = None
def create_meta():
return type
Meta = create_meta()
class Something(Meta):
pass
class DerivedException(Exception):
pass
# PY-28150
from typing import Generic, TypeVar
T = TypeVar("T")
class A(Generic[T]):
pass
class B(A):
pass