You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
When using the package in the cli to display news feed and you pass in a news number count like "pprint.pprint(f.news(3))" just as it says in the read.me, It shows an error "feed.news() takes 1 positional argument but 2 were given". I went through the code and noticed the news argument in the feed class (found in defe/defe.py) doesn't take in an argument for the number of news, that's why this error is showing, so I'm suggesting you update the package usage in the read.me to reflect that it doesn't take in any argument.
Steps to reproduce the behavior:
from defe import defe
import pprint
f = defe.feed()
pprint.pprint(f.news(3))
You should see a positional argument error.
Expected behavior
Update read.me to reflect that no positional argument is passed.
Desktop (please complete the following information):
OS: [Windows]
Terminal
Additional context
I may not have passed the argument right, but following the documentation from the read.me, this is what it reproduces.
The text was updated successfully, but these errors were encountered:
Bug description
When using the package in the cli to display news feed and you pass in a news number count like "pprint.pprint(f.news(3))" just as it says in the read.me, It shows an error "feed.news() takes 1 positional argument but 2 were given". I went through the code and noticed the news argument in the feed class (found in defe/defe.py) doesn't take in an argument for the number of news, that's why this error is showing, so I'm suggesting you update the package usage in the read.me to reflect that it doesn't take in any argument.
Steps to reproduce the behavior:
from defe import defe
import pprint
f = defe.feed()
pprint.pprint(f.news(3))
You should see a positional argument error.
Expected behavior
Update read.me to reflect that no positional argument is passed.
Desktop (please complete the following information):
Additional context
I may not have passed the argument right, but following the documentation from the read.me, this is what it reproduces.
The text was updated successfully, but these errors were encountered: