Skip to content

Commit

Permalink
add conditional nested class
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jan 28, 2022
1 parent 68193b9 commit 6e788e7
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions tests/data/stub.pyi
Expand Up @@ -3,7 +3,7 @@ X: int
def f(): ...


class D:
class D:
...


Expand Down Expand Up @@ -56,7 +56,7 @@ class Nested:
def who_has_to_know(self): ...
def verse(self): ...

class CondMethod:
class Conditional:
def f(self): ...
if sys.version_info >= (3, 8):
def g(self): ...
Expand All @@ -67,6 +67,12 @@ class CondMethod:
if sys.version_info >= (3, 8):
def j(self): ...
def k(self): ...
if sys.version_info >= (3, 8):
class A: ...
class B: ...
class C:
def l(self): ...
def m(self): ...


# output
Expand Down Expand Up @@ -123,7 +129,7 @@ class Nested:

def verse(self): ...

class CondMethod:
class Conditional:
def f(self): ...
if sys.version_info >= (3, 8):
def g(self): ...
Expand All @@ -136,3 +142,10 @@ class CondMethod:
def j(self): ...

def k(self): ...
if sys.version_info >= (3, 8):
class A: ...
class B: ...

class C:
def l(self): ...
def m(self): ...

0 comments on commit 6e788e7

Please sign in to comment.