Skip to content

Commit

Permalink
Satisfy linters (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Mar 17, 2020
1 parent 1fe5c0a commit c0f3132
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tests/test_sphinxcontrib_trio.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,25 @@ def acm_wrapped(): # pragma: no cover
# A chain with complex overrides. We ignore the intermediate generator and
# async function, because the outermost one is a contextmanager -- but we
# still pick up the staticmethod at the end of the chain.
@staticmethod
@staticmethod # type: ignore
def messy0(): # pragma: no cover
pass

async def messy1(): # pragma: no cover
pass
messy1.__wrapped__ = messy0

setattr(messy1, "__wrapped__", messy0)

def messy2(): # pragma: no cover
yield
messy2.__wrapped__ = messy1

setattr(messy2, "__wrapped__", messy1)

def messy3(): # pragma: no cover
pass
messy3.__wrapped__ = messy2
messy3.__returns_contextmanager__ = True

setattr(messy3, "__wrapped__", messy2)
setattr(messy3, "__returns_contextmanager__", True)
check(messy3, "with", "staticmethod")


Expand Down

0 comments on commit c0f3132

Please sign in to comment.