Skip to content

Commit d990da2

Browse files
committed
revert property types changes
1 parent 2de765d commit d990da2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sphinx/ext/autodoc/_property_types.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class _ItemProperties:
4646

4747
# @property
4848
# def name(self) -> str:
49-
# return self.parts[-1]
49+
# return self.module_name.rpartition('.')[2]
5050

5151
@property
5252
def full_name(self) -> str:
@@ -69,10 +69,6 @@ class _ModuleProperties(_ItemProperties):
6969
# def name(self) -> str:
7070
# return self.module_name.rpartition('.')[2]
7171

72-
@property
73-
def full_name(self) -> str:
74-
return self.module_name
75-
7672
@property
7773
def parent_names(self) -> tuple[str, ...]:
7874
return tuple(self.module_name.split('.')[:-1])

0 commit comments

Comments
 (0)