Skip to content

Commit 1e926ea

Browse files
committed
Class is instance of its metaclass
1 parent 726b448 commit 1e926ea

File tree

1 file changed

+2
-1
lines changed
  • crates/red_knot_python_semantic/resources/mdtest/call

1 file changed

+2
-1
lines changed

crates/red_knot_python_semantic/resources/mdtest/call/dunder.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ In the following tests, we demonstrate that we implement this behavior correctly
3232

3333
## Operating on class objects
3434

35-
If we invoke a dunder method on a class, it is looked up on the *meta* class:
35+
If we invoke a dunder method on a class, it is looked up on the *meta* class, since any class is an
36+
instance of its metaclass:
3637

3738
```py
3839
class Meta(type):

0 commit comments

Comments
 (0)