MCPcopy Index your code
hub / github.com/RustPython/RustPython / decorator

Method decorator

Lib/test/test_grammar.py:1916–1918  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

1914 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))
1915
1916 def decorator(func):
1917 setattr(func, '_marked', True)
1918 return func
1919
1920 @decorator
1921 async def test2():

Callers

nothing calls this directly

Calls 1

setattrFunction · 0.85

Tested by

no test coverage detected