mirror of
https://github.com/python/cpython.git
synced 2025-10-07 23:51:16 +00:00
[3.6] bpo-31567: add or fix decorator markup in docs (GH-3959) (GH-3966)
(cherry picked from commit 0e61e67a57
)
This commit is contained in:
parent
5f908005ce
commit
205dd4e14d
6 changed files with 24 additions and 15 deletions
|
@ -1471,8 +1471,8 @@ class ForwardRefTests(BaseTestCase):
|
|||
def test_meta_no_type_check(self):
|
||||
|
||||
@no_type_check_decorator
|
||||
def magic_decorator(deco):
|
||||
return deco
|
||||
def magic_decorator(func):
|
||||
return func
|
||||
|
||||
self.assertEqual(magic_decorator.__name__, 'magic_decorator')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue