diff --git a/jedi/inference/compiled/access.py b/jedi/inference/compiled/access.py index 277c9b1d..c179d6b0 100644 --- a/jedi/inference/compiled/access.py +++ b/jedi/inference/compiled/access.py @@ -9,7 +9,7 @@ import re import builtins import typing from pathlib import Path -from typing import Optional, Tuple +from typing import Optional, Tuple, Any from jedi.inference.compiled.getattr_static import getattr_static @@ -46,7 +46,7 @@ ClassMethodDescriptorType = type(object_class_dict['__subclasshook__']) _sentinel = object() # Maps Python syntax to the operator module. -COMPARISON_OPERATORS = { +COMPARISON_OPERATORS: dict[str, Any] = { '==': op.eq, '!=': op.ne, 'is': op.is_,