File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -438,5 +438,6 @@ Or read these articles:
438
438
439
439
- [ Python exceptions considered an anti-pattern] ( https://sobolevn.me/2019/02/python-exceptions-considered-an-antipattern )
440
440
- [ Enforcing Single Responsibility Principle in Python] ( https://sobolevn.me/2019/03/enforcing-srp )
441
+ - [ Typed functional Dependency Injection in Python] ( https://sobolevn.me/2020/02/typed-functional-dependency-injection )
441
442
442
443
Do you have an article to submit? Feel free to open a pull request!
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ Let's see the final result:
176
176
def calculate_points (word : str ) -> RequiresContext[_Deps, int ]:
177
177
def factory (deps : _Deps) -> RequiresContext[_Deps, int ]:
178
178
guessed_letters_count = len ([
179
- letter for letter in word if letter != deps.UNGUESSED_CHAR
179
+ letter for letter in word if letter != deps.UNGUESSED_CHAR
180
180
])
181
181
return _award_points_for_letters(guessed_letters_count)
182
182
You can’t perform that action at this time.
0 commit comments