Skip to content

Commit

Permalink
v2.0.1 🥐
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoPrevato authored Mar 14, 2023
1 parent 57223e2 commit ee55453
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.1] - 2023-03-14 :croissant:
- Removes the strict requirement for resolved classes to have `__init__`
methods defined, to add support for `Protocol`s that do not define an
`__init__` method (thus using `*args`, `**kwargs`,
[akhundMurad](https://github.com/akhundMurad)'s contribution.
- Corrects a code smell, replacing an `i` counter with `enumerate`,
[GLEF1X](https://github.com/GLEF1X)'s contribution.

## [2.0.0] - 2023-01-07 :star:
- Introduces a `ContainerProtocol` to improve interoperability between
libraries and alternative implementations of DI containers. The protocol is
Expand Down
2 changes: 1 addition & 1 deletion rodi/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.0"
__version__ = "2.0.1"
8 changes: 7 additions & 1 deletion tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Iterable,
List,
Mapping,
Protocol,
Sequence,
Tuple,
Type,
Expand Down Expand Up @@ -86,6 +85,13 @@
T_1 = TypeVar("T_1")


try:
from typing import Protocol
except ImportError: # pragma: no cover
# support for Python 3.7
from typing_extensions import Protocol


class LoggedVar(Generic[T_1]):
def __init__(self, value: T_1, name: str) -> None:
self.name = name
Expand Down

0 comments on commit ee55453

Please sign in to comment.