@@ -2077,10 +2077,45 @@ def as_dict(self, *, full: bool = False, **kwargs: Any) -> dict[str, Any]: # no
20772077 "kind" : Kind .ALIAS ,
20782078 "name" : self .name ,
20792079 "target_path" : self .target_path ,
2080+ "public" : self .public ,
2081+ "runtime" : self .runtime ,
2082+ "inherited" : self .inherited ,
2083+ "deprecated" : self .deprecated ,
20802084 }
20812085
20822086 if full :
2083- base ["path" ] = self .path
2087+ base .update (
2088+ {
2089+ "path" : self .path ,
2090+ "filepath" : self .filepath ,
2091+ "relative_filepath" : self .relative_filepath ,
2092+ "relative_package_filepath" : self .relative_package_filepath ,
2093+ "is_public" : self .is_public ,
2094+ "is_deprecated" : self .is_deprecated ,
2095+ "is_private" : self .is_private ,
2096+ "is_class_private" : self .is_class_private ,
2097+ "is_special" : self .is_special ,
2098+ "is_imported" : self .is_imported ,
2099+ "is_exported" : self .is_exported ,
2100+ "is_wildcard_exposed" : self .is_wildcard_exposed ,
2101+ "is_inherited" : self .inherited ,
2102+ # TODO: Add these properties?
2103+ # "is_alias": self.is_alias,
2104+ # "is_collection": self.is_collection,
2105+ # "is_module": self.is_module,
2106+ # "is_class": self.is_class,
2107+ # "is_function": self.is_function,
2108+ # "is_attribute": self.is_attribute,
2109+ # "is_type_alias": self.is_type_alias,
2110+ # "is_init_module": self.is_init_module,
2111+ # "is_package": self.is_package,
2112+ # "is_subpackage": self.is_subpackage,
2113+ # "is_namespace_package": self.is_namespace_package,
2114+ # "is_namespace_subpackage": self.is_namespace_subpackage,
2115+ # "has_docstring": self.has_docstring,
2116+ # "has_docstrings": self.has_docstrings,
2117+ }
2118+ )
20842119
20852120 if self .alias_lineno :
20862121 base ["lineno" ] = self .alias_lineno
0 commit comments