mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
[V3] NumPy Docstrings (#1032)
* ALL THE DOCSTRINGS * Remove imports in drivers package * Fixed build warnings
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from typing import Tuple
|
||||
|
||||
__all__ = ["BaseDriver"]
|
||||
|
||||
class BaseDriver:
|
||||
def get_driver(self):
|
||||
|
||||
@@ -5,6 +5,8 @@ from ..json_io import JsonIO
|
||||
|
||||
from .red_base import BaseDriver
|
||||
|
||||
__all__ = ["JSON"]
|
||||
|
||||
|
||||
class JSON(BaseDriver):
|
||||
def __init__(self, cog_name, *, data_path_override: Path=None,
|
||||
|
||||
@@ -2,6 +2,10 @@ import pymongo as m
|
||||
from .red_base import BaseDriver
|
||||
|
||||
|
||||
__all__ = ["Mongo", "RedMongoException", "MultipleMatches",
|
||||
"MissingCollection"]
|
||||
|
||||
|
||||
class RedMongoException(Exception):
|
||||
"""Base Red Mongo Exception class"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user