python-patterns
python-patterns copied to clipboard
A collection of design patterns/idioms in Python
This should: - close #399 - close #398 - close #373 I fixed the inheritance problem in `observer.py` and the missing argument in `specification.py`. This pr also includes typehints for...
Inside the `patterns/behavior/specification.py` file, the class `CompositeSpecification` has a missing attribute in the function `not_specification` named `candidate`
Hey, I'm currently working on expanding the type hints and noticed a mistake. In `patterns/behavioral/observer.py`, the classes `HexViewer` and `DecimalViewer` are supposed to innherit the `Observer`-class, but dont. Should I...
I haven't checked if any of the examples is simply completely copied from the web, when it would need to retain original copyright/license notice, or all of them could be...
Would you accept PRs about functional programming patterns @faif ? Would probably imply some project restructuring (e.g. putting dirs "behavioral" and "structural" into "oop").
The way this repo is structured can be hard to read at times. Have you considered creating a jupyter notebook version of this repo? Pros - Better formatting of texts...
As far as I know almost always coverage is used to see "test coverage". For unused branches/variables etc there are linters, dead-code finders (such as `vulture` or `dead`). So I...
Some files have type hints and others do not. I think writing type hints make it easier to understand the patterns. I suggest to write type hints and if its...
A common pattern is page object model and loadable component, I have a source code with them