Skip to content

Commit b5d02ab

Browse files
authored
intro/magic: Use cls instead of self @ metaclass
1 parent 8646350 commit b5d02ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lessons/intro/magic/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ existuje, zavolá pro vytvoření jmenného prostoru:
703703
from collections import OrderedDict
704704

705705
class OrderRememberingMeta(type):
706-
def __prepare__(self, name):
706+
def __prepare__(cls, name):
707707
return OrderedDict()
708708

709709
def __init__(cls, name, bases, namespace):

0 commit comments

Comments
 (0)