sentence() missing 1 required positional argument: 'self'
Describe the bug According to the documentation on readthedocs there are three classess in the wonderwords.RandomSentence class:
- bare_bone_sentence
- simple_sentence
- sentence
To execute any of them you are simply supposed to call them with empty () like so
s.sentence()
That however produces an error
Traceback (most recent call last):
File "
To Reproduce Steps to reproduce the behavior:
- enter python interactive shell
- import wonderwords
- s=wonderwords.RandomSentence
- s.sentence()
- See error
Expected behavior Printout of a random sentence.
Desktop (please complete the following information):
- OS: Windows 11
- cmd.exe
- Python 3.7.2
if you do s = wonderwords.RandomSentence() it will work you have to create an instance of the class I couldn't find an example which effects the application so if you provide context with this issiue which effects the application I can check
Yep!