---
source: crates/ruff_linter/src/rules/pyupgrade/mod.rs
snapshot_kind: text
---
UP001.py:2:5: UP001 [*] `__metaclass__ = type` is implied
  |
1 | class A:
2 |     __metaclass__ = type
  |     ^^^^^^^^^^^^^^^^^^^^ UP001
  |
  = help: Remove `__metaclass__ = type`

ℹ Safe fix
1 1 | class A:
2   |-    __metaclass__ = type
  2 |+    pass
3 3 | 
4 4 | 
5 5 | class B:

UP001.py:6:5: UP001 [*] `__metaclass__ = type` is implied
  |
5 | class B:
6 |     __metaclass__ = type
  |     ^^^^^^^^^^^^^^^^^^^^ UP001
7 | 
8 |     def __init__(self) -> None:
  |
  = help: Remove `__metaclass__ = type`

ℹ Safe fix
3 3 | 
4 4 | 
5 5 | class B:
6   |-    __metaclass__ = type
7 6 | 
8 7 |     def __init__(self) -> None:
9 8 |         pass
