Skip to content

Commit fcfc6cf

Browse files
author
Sergio García Prado
committed
ISSUE #150
* Minor change (2).
1 parent 577b2bb commit fcfc6cf

File tree

1 file changed

+4
-4
lines changed
  • packages/core/minos-microservice-common/minos/common

1 file changed

+4
-4
lines changed

packages/core/minos-microservice-common/minos/common/builders.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
SetupMixin,
2222
)
2323

24-
Instance = TypeVar("Instance", bound=type)
24+
Instance = TypeVar("Instance")
2525

2626

2727
class Builder(SetupMixin, ABC, Generic[Instance]):
@@ -50,15 +50,15 @@ def _get_cls(self) -> Optional[type]:
5050
def copy(self: type[B]) -> B:
5151
"""Get a copy of the instance.
5252
53-
:return: A ``BrokerSubscriberBuilder`` instance.
53+
:return: A ``Builder`` instance.
5454
"""
5555
return self.new().with_cls(self.instance_cls).with_kwargs(self.kwargs)
5656

5757
@classmethod
5858
def new(cls: type[B]) -> B:
5959
"""Get a new instance.
6060
61-
:return: A ``BrokerSubscriberBuilder`` instance.
61+
:return: A ``Builder`` instance.
6262
"""
6363
return cls()
6464

@@ -131,7 +131,7 @@ def set_builder(cls: type[Ins], builder: Union[Builder[Ins], type[Builder[Ins]]]
131131
def get_builder(cls) -> Builder[Ins]:
132132
"""Get the builder class.
133133
134-
:return: A ``Builder`` subclass.
134+
:return: A ``Builder`` instance.
135135
"""
136136
builder = cls._builder
137137

0 commit comments

Comments
 (0)