Skip to content

Commit

Permalink
Use type checking and future imports for parity
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Dec 30, 2023
1 parent e64c268 commit 177502e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions bot/cogs/dev_tools.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
from typing import Literal, Optional
from __future__ import annotations

from typing import TYPE_CHECKING, Literal, Optional

import discord
from cogs import EXTENSIONS
from discord.ext import commands
from discord.ext.commands import Context, Greedy
from libs.utils import RoboContext, RoboView
from rodhaj import Rodhaj

if TYPE_CHECKING:
from bot.rodhaj import Rodhaj


class MaybeView(RoboView):
Expand Down
7 changes: 6 additions & 1 deletion bot/cogs/utilities.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
from __future__ import annotations

import datetime
import itertools
import platform
from typing import TYPE_CHECKING

import discord
import psutil
import pygit2
from discord.ext import commands
from discord.utils import format_dt
from libs.utils import Embed, RoboContext, human_timedelta
from rodhaj import Rodhaj

if TYPE_CHECKING:
from bot.rodhaj import Rodhaj


# A cog houses a category of commands
Expand Down

0 comments on commit 177502e

Please sign in to comment.