-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds types for all the methods in the Reddit class
- Adds types for all the methods in the Reddit class - Adds asyncprawcore-stubs as dependency - Adds typing for some modules that are necessary for the Reddit class. However, some stubs are partially implemented
- Loading branch information
1 parent
4ef9da8
commit 385aa11
Showing
19 changed files
with
236 additions
and
14 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from .listing.domain import DomainListing | ||
from .reddit.comment import Comment | ||
from .reddit.redditor import Redditor | ||
from .reddit.submission import Submission | ||
from .reddit.subreddit import Subreddit | ||
|
||
__all__ = [ | ||
"Comment", | ||
"DomainListing", | ||
"Redditor", | ||
"Submission", | ||
"Subreddit", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Provide the AsyncPRAWBase superclass.""" | ||
|
||
from __future__ import annotations | ||
|
||
class AsyncPRAWBase: ... |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""Provide the DomainListing class.""" | ||
|
||
from __future__ import annotations | ||
|
||
from .mixins import BaseListingMixin, RisingListingMixin | ||
|
||
|
||
class DomainListing(BaseListingMixin, RisingListingMixin): | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
"""Package providing models that pertain to listing mixins.""" | ||
|
||
from .base import BaseListingMixin | ||
from .rising import RisingListingMixin | ||
|
||
__all__ = ["BaseListingMixin", "RisingListingMixin"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Provide the BaseListingMixin class.""" | ||
|
||
from __future__ import annotations | ||
|
||
from ...base import AsyncPRAWBase | ||
|
||
class BaseListingMixin(AsyncPRAWBase): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Provide the RisingListingMixin class.""" | ||
|
||
from __future__ import annotations | ||
|
||
from ...base import AsyncPRAWBase | ||
|
||
class RisingListingMixin(AsyncPRAWBase): ... |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""Provide the RedditBase class.""" | ||
|
||
from __future__ import annotations | ||
|
||
from asyncpraw.models.base import AsyncPRAWBase | ||
|
||
|
||
class RedditBase(AsyncPRAWBase): | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Provide the Comment class.""" | ||
|
||
from __future__ import annotations | ||
|
||
|
||
class Comment: # incomplete | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"""Provide the Redditor class.""" | ||
|
||
class Redditor: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
class Submission: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
class Subreddit: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Provide helper classes used by other models.""" | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Any, Callable | ||
|
||
def deprecate_lazy(func: Callable[..., Any]) -> Callable[..., Any]: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters