Skip to content

Commit ce5ff98

Browse files
committed
fix: Add inherited_from fields to Constructor, Method, CallSignature and ConstructorSignature classes
Issue-mkdocstrings/typescript#11: mkdocstrings/typescript#11 Issue-mkdocstrings/typescript#12: mkdocstrings/typescript#12
1 parent 9d9fa8f commit ce5ff98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/griffe_typedoc/dataclasses.py

+4
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ def kind(self) -> ReflectionKind:
431431
class Constructor(Reflection):
432432
signatures: list[ConstructorSignature] | None = None
433433
overwrites: Type | None = None
434+
inherited_from: Type | None = None
434435

435436
@property
436437
def kind(self) -> ReflectionKind:
@@ -454,6 +455,7 @@ class Method(Reflection):
454455
signatures: list[CallSignature]
455456
overwrites: Type | None = None
456457
implementation_of: Type | None = None
458+
inherited_from: Type | None = None
457459

458460
@property
459461
def kind(self) -> ReflectionKind:
@@ -467,6 +469,7 @@ class CallSignature(Reflection):
467469
type_parameter: list[TypeParameter] | None = None
468470
overwrites: Type | None = None
469471
implementation_of: Type | None = None
472+
inherited_from: Type | None = None
470473

471474
@property
472475
def kind(self) -> ReflectionKind:
@@ -487,6 +490,7 @@ def kind(self) -> ReflectionKind:
487490
class ConstructorSignature(Reflection):
488491
parameters: list[Parameter] | None = None
489492
overwrites: Type | None = None
493+
inherited_from: Type | None = None
490494

491495
@property
492496
def kind(self) -> ReflectionKind:

0 commit comments

Comments
 (0)