forked from VimPlug/jedi
A few class renames
This commit is contained in:
@@ -101,7 +101,7 @@ class TypingModuleFilterWrapper(FilterWrapper):
|
|||||||
name_wrapper_class = TypingModuleName
|
name_wrapper_class = TypingModuleName
|
||||||
|
|
||||||
|
|
||||||
class TypingClassWithIndex(BaseTypingClassWithGenerics):
|
class ProxyWithGenerics(BaseTypingClassWithGenerics):
|
||||||
def execute_annotation(self):
|
def execute_annotation(self):
|
||||||
string_name = self._tree_name.value
|
string_name = self._tree_name.value
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ class TypingClassWithIndex(BaseTypingClassWithGenerics):
|
|||||||
return ValueSet.from_sets(self._generics_manager.to_tuple())
|
return ValueSet.from_sets(self._generics_manager.to_tuple())
|
||||||
|
|
||||||
def _create_instance_with_generics(self, generics_manager):
|
def _create_instance_with_generics(self, generics_manager):
|
||||||
return TypingClassWithIndex(
|
return ProxyWithGenerics(
|
||||||
self.parent_context,
|
self.parent_context,
|
||||||
self._tree_name,
|
self._tree_name,
|
||||||
generics_manager
|
generics_manager
|
||||||
@@ -165,7 +165,7 @@ class TypingClassWithIndex(BaseTypingClassWithGenerics):
|
|||||||
|
|
||||||
|
|
||||||
class ProxyTypingValue(BaseTypingValue):
|
class ProxyTypingValue(BaseTypingValue):
|
||||||
index_class = TypingClassWithIndex
|
index_class = ProxyWithGenerics
|
||||||
|
|
||||||
def with_generics(self, generics_tuple):
|
def with_generics(self, generics_tuple):
|
||||||
return self.index_class.create_cached(
|
return self.index_class.create_cached(
|
||||||
@@ -203,7 +203,7 @@ class _TypingClassMixin(ClassMixin):
|
|||||||
return ValueName(self, self._tree_name)
|
return ValueName(self, self._tree_name)
|
||||||
|
|
||||||
|
|
||||||
class TypingClassValueWithIndex(_TypingClassMixin, TypingClassWithIndex):
|
class TypingClassWithGenerics(_TypingClassMixin, ProxyWithGenerics):
|
||||||
def infer_type_vars(self, value_set):
|
def infer_type_vars(self, value_set):
|
||||||
type_var_dict = {}
|
type_var_dict = {}
|
||||||
annotation_generics = self.get_generics()
|
annotation_generics = self.get_generics()
|
||||||
@@ -234,7 +234,7 @@ class TypingClassValueWithIndex(_TypingClassMixin, TypingClassWithIndex):
|
|||||||
|
|
||||||
|
|
||||||
class ProxyTypingClassValue(_TypingClassMixin, ProxyTypingValue):
|
class ProxyTypingClassValue(_TypingClassMixin, ProxyTypingValue):
|
||||||
index_class = TypingClassValueWithIndex
|
index_class = TypingClassWithGenerics
|
||||||
|
|
||||||
|
|
||||||
class TypeAlias(LazyValueWrapper):
|
class TypeAlias(LazyValueWrapper):
|
||||||
|
|||||||
Reference in New Issue
Block a user