removed dead parameter
removed test which made not much sense
added test
removed duplication
added and fixed type hints
added line feed at end of text file as suggested by SensioLabs Insight
the usage example should not be a real annotation...
...not at least since it confuses code analysis tools.
Added missing type hint.