Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stub files for PRAW #1164

Closed
wants to merge 45 commits into from
Closed

Add stub files for PRAW #1164

wants to merge 45 commits into from

Conversation

PythonCoderAS
Copy link
Contributor

@PythonCoderAS PythonCoderAS commented Dec 23, 2019

As per #1144 I will be adding in a folder of stub files that match the expected types in every function, class and method. I tried my best to figure out the types from the corresponding docstrings, but some of them might be erroneous. Please send a PR with any corrected mistakes.

The blank templates were generated with mypy's stubgen --doc-dir ./docs/ -p praw -o ./stubs/ which was run in the base directory of the repo. This requires that the development praw be installed, as the -p option will import praw. mypy can be obtained through pip install mypy.

@PythonCoderAS
Copy link
Contributor Author

There are stub files for every file, but not all of them are filled in.

bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
(#1164) Add types to listing/mixins/rising.py
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
bboe pushed a commit that referenced this pull request Dec 29, 2019
bboe pushed a commit that referenced this pull request Dec 29, 2019
bboe pushed a commit that referenced this pull request Dec 29, 2019
bboe pushed a commit that referenced this pull request Dec 29, 2019
bboe pushed a commit that referenced this pull request Dec 29, 2019
bboe pushed a commit that referenced this pull request Dec 29, 2019
bboe pushed a commit that referenced this pull request Dec 29, 2019
bboe pushed a commit that referenced this pull request Dec 29, 2019
(#1164) Add types to listing/mixins/redditor.py
bboe added a commit that referenced this pull request Dec 29, 2019
bboe added a commit that referenced this pull request Dec 29, 2019
(#1164) Add types to models/reddit/removal_reasons.py
bboe added a commit that referenced this pull request Dec 29, 2019
(#1164) Add types to models/reddit/submission.py
@PythonCoderAS
Copy link
Contributor Author

PythonCoderAS commented Jan 1, 2020

Official Statusboard:

praw

  • config.py
  • objector.py
  • init.py
  • exceptions.py
  • reddit.py
  • endpoints.py
  • const.py

praw/util

  • cache.py
  • init.py
  • snake.py

praw/models

  • redditors.py
  • auth.py
  • subreddits.py
  • user.py
  • util.py
  • preferences.py
  • init.py
  • mod_action.py
  • inbox.py
  • comment_forest.py
  • front.py
  • trophy.py
  • modaction.py
  • stylesheet.py
  • helpers.py
  • base.py

praw/models/list

  • init.py
  • redditor.py
  • trophy.py
  • base.py

praw/models/reddit

  • comment.py
  • emoji.py
  • multi.py
  • submission.py
  • init.py
  • message.py
  • redditor.py
  • wikipage.py
  • widgets.py
  • subreddit.py
  • more.py
  • collections.py
  • modmail.py
  • live.py
  • removal_reasons.py
  • base.py

praw/models/reddit/mixins

  • reportable.py
  • editable.py
  • inboxtoggleable.py
  • replyable.py
  • gildable.py
  • init.py
  • fullname.py
  • votable.py
  • inboxable.py
  • messageable.py
  • savable.py

praw/models/listing

  • domain.py
  • init.py
  • listing.py
  • generator.py

praw/models/listing/mixins

  • rising.py
  • submission.py
  • init.py
  • redditor.py
  • gilded.py
  • subreddit.py
  • base.py

This was referenced Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants