File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 2.0.1] - 2023-03-14 :croissant :
9+ - Removes the strict requirement for resolved classes to have ` __init__ `
10+ methods defined, to add support for ` Protocol ` s that do not define an
11+ ` __init__ ` method (thus using ` *args ` , ` **kwargs ` ,
12+ [ akhundMurad] ( https://github.com/akhundMurad ) 's contribution.
13+ - Corrects a code smell, replacing an ` i ` counter with ` enumerate ` ,
14+ [ GLEF1X] ( https://github.com/GLEF1X ) 's contribution.
15+
816## [ 2.0.0] - 2023-01-07 :star :
917- Introduces a ` ContainerProtocol ` to improve interoperability between
1018 libraries and alternative implementations of DI containers. The protocol is
Original file line number Diff line number Diff line change 1- __version__ = "2.0.0 "
1+ __version__ = "2.0.1 "
Original file line number Diff line number Diff line change 77 Iterable ,
88 List ,
99 Mapping ,
10- Protocol ,
1110 Sequence ,
1211 Tuple ,
1312 Type ,
8685T_1 = TypeVar ("T_1" )
8786
8887
88+ try :
89+ from typing import Protocol
90+ except ImportError : # pragma: no cover
91+ # support for Python 3.7
92+ from typing_extensions import Protocol
93+
94+
8995class LoggedVar (Generic [T_1 ]):
9096 def __init__ (self , value : T_1 , name : str ) -> None :
9197 self .name = name
You can’t perform that action at this time.
0 commit comments