Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion praw/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import TYPE_CHECKING, Any, Dict, Optional

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class PRAWBase:
Expand Down
2 changes: 1 addition & 1 deletion praw/models/comment_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .reddit.more import MoreComments

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class CommentForest:
Expand Down
2 changes: 1 addition & 1 deletion praw/models/front.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .listing.mixins import SubredditListingMixin

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class Front(SubredditListingMixin):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .reddit.multi import Multireddit, Subreddit

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class LiveHelper(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .util import stream_generator

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class Inbox(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/list/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ..base import PRAWBase

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class BaseList(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/listing/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .mixins import BaseListingMixin, RisingListingMixin

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class DomainListing(BaseListingMixin, RisingListingMixin):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/listing/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .listing import FlairListing

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class ListingGenerator(PRAWBase, Iterator):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/listing/mixins/redditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .gilded import GildedListingMixin

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class SubListing(BaseListingMixin):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/listing/mixins/rising.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ..generator import ListingGenerator

if TYPE_CHECKING: # pragma: no cover
from ..... import praw
import praw


class RisingListingMixin(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/listing/mixins/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ..generator import ListingGenerator

if TYPE_CHECKING: # pragma: no cover
from ..... import praw
import praw


class SubmissionListingMixin(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/listing/mixins/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .rising import RisingListingMixin

if TYPE_CHECKING: # pragma: no cover
from ..... import praw
import praw


class CommentHelper(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/mod_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .base import PRAWBase

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class ModAction(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ..const import API_PATH

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class Preferences:
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ..base import PRAWBase

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class RedditBase(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .subreddit import Subreddit

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class CollectionModeration(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .redditor import Redditor

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class Comment(InboxableMixin, UserContentMixin, FullnameMixin, RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .base import RedditBase

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class Emoji(RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .redditor import Redditor

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class LiveContributorRelationship:
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .subreddit import Subreddit

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class Message(InboxableMixin, ReplyableMixin, FullnameMixin, RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/mixins/messageable.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ....const import API_PATH

if TYPE_CHECKING: # pragma: no cover
from ..... import praw
import praw


class MessageableMixin:
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from .base import RedditBase

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class ModmailConversation(RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/more.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ..base import PRAWBase

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class MoreComments(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .subreddit import Subreddit, SubredditStream

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class Multireddit(SubredditListingMixin, RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/redditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .mixins import FullnameMixin, MessageableMixin

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class Redditor(MessageableMixin, RedditorListingMixin, FullnameMixin, RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/removal_reasons.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .base import RedditBase

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class RemovalReason(RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .base import RedditBase

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class Rule(RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .subreddit import Subreddit

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class SubmissionFlair:
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from .wikipage import WikiPage

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class Subreddit(MessageableMixin, SubredditListingMixin, FullnameMixin, RedditBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/user_subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .subreddit import Subreddit, SubredditModeration

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class UserSubreddit(Subreddit):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/reddit/wikipage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .redditor import Redditor

if TYPE_CHECKING: # pragma: no cover
from .... import praw
import praw


class WikiPageModeration:
Expand Down
2 changes: 1 addition & 1 deletion praw/models/redditors.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .util import stream_generator

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class PartialRedditor(SimpleNamespace):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/subreddits.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .util import stream_generator

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class Subreddits(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/trophy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .base import PRAWBase

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class Trophy(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .reddit.subreddit import Subreddit

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class User(PRAWBase):
Expand Down
2 changes: 1 addition & 1 deletion praw/objector.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .util import snake_case_keys

if TYPE_CHECKING: # pragma: no cover
from ... import praw
import praw


class Objector:
Expand Down
2 changes: 1 addition & 1 deletion praw/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
UPDATE_CHECKER_MISSING = True

if TYPE_CHECKING: # pragma: no cover
from .. import praw
import praw

Comment = models.Comment
Redditor = models.Redditor
Expand Down