IgnoreUpdatesContext: rename __exit__() parameters to match Python documentation

It avoids defining `type` which is a builtin.
This commit is contained in:
Laurent Monin
2024-05-24 13:10:01 +02:00
parent ef14f46744
commit 977c4e5602

View File

@@ -574,7 +574,7 @@ class IgnoreUpdatesContext:
if self._entered == 1 and self._on_first_enter:
self._on_first_enter()
def __exit__(self, type, value, tb):
def __exit__(self, exc_type, exc_value, traceback):
self._entered -= 1
if self._on_exit:
self._on_exit()