diff --git a/update.py b/update.py index efa4bd9..330e398 100755 --- a/update.py +++ b/update.py @@ -5,9 +5,17 @@ import asyncio import os import sys import typing +import warnings from datetime import date, datetime from time import time +# authlib 1.7 registers simplefilter("always") for AuthlibDeprecationWarning at +# import time, then _joserfc_helpers.py triggers a deprecation by importing the +# old authlib.jose module. Importing authlib.deprecate first lets us insert our +# "ignore" filter at position 0 so it wins the ordering race. +import authlib.deprecate # noqa: E402 — must precede the filter below +warnings.filterwarnings("ignore", message="authlib.jose module is deprecated") + import deepdiff import flask import requests