From fc424f7263ecfa264e5925dd0f236f09b2ba0511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= <tlovinator@gmail.com> Date: Mon, 9 Jan 2023 03:51:46 +0100 Subject: [PATCH] Run black --- discord_embed/settings.py | 2 +- discord_embed/video.py | 1 + discord_embed/video_file_upload.py | 1 + tests/test_generate_html.py | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/discord_embed/settings.py b/discord_embed/settings.py index 89840e7..a6b2f5e 100644 --- a/discord_embed/settings.py +++ b/discord_embed/settings.py @@ -1,7 +1,7 @@ import os import pathlib - import sys + from dotenv import load_dotenv DESCRIPTION = ( diff --git a/discord_embed/video.py b/discord_embed/video.py index 58e0324..5445c1a 100644 --- a/discord_embed/video.py +++ b/discord_embed/video.py @@ -13,6 +13,7 @@ class Resolution: height: Height of video. width: Width of video. """ + height: int width: int diff --git a/discord_embed/video_file_upload.py b/discord_embed/video_file_upload.py index e6f5f62..412f8ee 100644 --- a/discord_embed/video_file_upload.py +++ b/discord_embed/video_file_upload.py @@ -18,6 +18,7 @@ class VideoFile: filename: The filename of the video file. location: The location of the video file. """ + filename: str location: str diff --git a/tests/test_generate_html.py b/tests/test_generate_html.py index fd1fe6b..4733850 100644 --- a/tests/test_generate_html.py +++ b/tests/test_generate_html.py @@ -56,7 +56,7 @@ def test_generate_html_for_videos(): elif line == 3: assert html.startswith("<!-- Generated at ") elif line == 4: - assert html == '<head>' + assert html == "<head>" elif line == 5: assert html == '<meta property="og:type" content="video.other">' elif line == 6: