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:
438438
439439- [ Python exceptions considered an anti-pattern] ( https://sobolevn.me/2019/02/python-exceptions-considered-an-antipattern )
440440- [ 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 )
441442
442443Do 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:
176176 def calculate_points (word : str ) -> RequiresContext[_Deps, int ]:
177177 def factory (deps : _Deps) -> RequiresContext[_Deps, int ]:
178178 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
180180 ])
181181 return _award_points_for_letters(guessed_letters_count)
182182
You can’t perform that action at this time.
0 commit comments