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

(#1164) Add types to listing/mixins/redditor.py #1206

Merged
merged 5 commits into from
Dec 29, 2019
Merged

(#1164) Add types to listing/mixins/redditor.py #1206

merged 5 commits into from
Dec 29, 2019

Conversation

PythonCoderAS
Copy link
Contributor

#1164

-> ./praw/models/listing/mixins/redditor.py

from urllib.parse import urljoin

from ....util.cache import cachedproperty
from ..generator import ListingGenerator
from .base import BaseListingMixin
from .gilded import GildedListingMixin

Reddit = TypeVar("Reddit")
_SubListing = TypeVar("_SubListing")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ordering or _.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While it breaks the class sort order, I think it'd be preferable to define the SubListing class before RedditorListingMixin to avoid needing to use an underscore. Will you do that please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@PythonCoderAS
Copy link
Contributor Author

It's a coverall error please re-run

@jarhill0
Copy link
Contributor

It's a coverall error please re-run

done.

@bboe bboe merged commit 965bbd2 into praw-dev:master Dec 29, 2019
@PythonCoderAS PythonCoderAS deleted the add-types-redditor-listing branch December 29, 2019 18:20
@PythonCoderAS PythonCoderAS added this to the Type all Modules milestone Mar 20, 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

3 participants