Add basic support for PEP 702 (@deprecated).
Closes #16111
This PR provides only basic support. Many special cases might need additional attention (descriptors, some special methods like __int__, etc.). Other open issues are code comments, eventual documentation updates, the deprecation message style, etc.). But I wanted to offer these first steps before going on vacation (so I cannot respond to possible reviews too soon).
Maybe someone wants to extend the list of (test) cases the basic support should address?
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: error: win32.win32api.WriteProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:135:19: error: win32.win32api.GetProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: error: win32.win32api.GetProfileSection is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: error: win32.win32api.WriteProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: error: win32.win32api.GetProfileSection is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: error: win32.win32api.WriteProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: error: win32.win32api.GetProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: error: win32.win32api.GetProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/azure_auth.py:549: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/request.py:238: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: error: logging.getLevelName is deprecated - The str -> int case is considered a mistake. [deprecated]
+ ddtrace/internal/debug.py:121: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:211: error: ast.Bytes is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:221: error: ast.Num is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:373: error: ast.NameConstant is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:218: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ddtrace/profiling/exporter/http.py:219: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: error: ast.Str is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/errors.py:55: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:65: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:181: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:75: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:107: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: error: ast.Str is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: error: ast.NameConstant is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/utils/audit.py:94: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/note.py:25: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:31: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:42: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:164: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:56: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:59: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:61: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:37: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:60: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:66: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:75: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:282: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:335: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:379: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:430: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:574: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:609: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:637: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/auth/utils.py:52: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:41: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:44: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: error: logging.getLevelName is deprecated - The str -> int case is considered a mistake. [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/services/user_updater.py:78: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:36: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:37: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/global_scoreboard_api.py:76: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/authorization.py:51:12: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: error: pkgutil.get_loader is deprecated - Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ tornado/test/httpclient_test.py:916: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ discord/member.py:976: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: error: shutil._RmtreeType.__call__ is deprecated - The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3641: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3648: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3656: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:713: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:1860: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/buildall.py:191: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: error: abc.abstractstaticmethod is deprecated - Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/_internal/concurrency/api.py:62: error: abc.abstractstaticmethod is deprecated - Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/results.py:465: error: abc.abstractclassmethod is deprecated - Deprecated, use 'classmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/server/database/query_components.py:2: error: abc.abstractproperty is deprecated - Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: error: logging.getLevelName is deprecated - The str -> int case is considered a mistake. [deprecated]
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ci/cleanup/launchdarkly.py:32: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/scratch.py:388: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/cloudbench.py:290: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/scratch/create.py:148: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:31: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:36: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/cleanup/aws.py:107: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: error: abc.abstractproperty is deprecated - Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/serialize.py:81: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ antimentionspam/antimentionspam.py:239: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/time_utils.py:42: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/time_utils.py:42: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/message.py:82: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ modnotes/modnotes.py:148: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: error: builtins.bool.__invert__ is deprecated - Will throw an error in Python 3.14. Use `not` for logical negation of bools instead. [deprecated]
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: error: ast.Str is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: error: ast.Num is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:298:9: error: ast.Str is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:299:9: error: ast.Bytes is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:300:9: error: ast.NameConstant is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:301:9: error: ast.Ellipsis is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: error: win32.win32api.WriteProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:135:19: error: win32.win32api.GetProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: error: win32.win32api.GetProfileSection is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: error: win32.win32api.WriteProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: error: win32.win32api.GetProfileSection is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: error: win32.win32api.WriteProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: error: win32.win32api.GetProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: error: win32.win32api.GetProfileVal is deprecated - This function is obsolete, applications should use the registry instead. [deprecated]
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/azure_auth.py:549: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/request.py:238: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/errors.py:55: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:65: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:181: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:75: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:107: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: error: logging.getLevelName is deprecated - The str -> int case is considered a mistake. [deprecated]
+ ddtrace/internal/debug.py:121: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:211: error: ast.Bytes is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:221: error: ast.Num is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:373: error: ast.NameConstant is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:218: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ddtrace/profiling/exporter/http.py:219: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: error: ast.Str is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: error: ast.Str is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: error: ast.NameConstant is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/utils/audit.py:94: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/note.py:25: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:31: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:42: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:164: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:56: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:59: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:61: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:37: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:60: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:66: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:75: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:282: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:335: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:379: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:430: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:574: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:609: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:637: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/auth/utils.py:52: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:41: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:44: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: error: logging.getLevelName is deprecated - The str -> int case is considered a mistake. [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/services/user_updater.py:78: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:36: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:37: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/global_scoreboard_api.py:76: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/authorization.py:51:12: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ discord/member.py:976: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: error: pkgutil.get_loader is deprecated - Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ tornado/test/httpclient_test.py:916: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: error: shutil._RmtreeType.__call__ is deprecated - The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3641: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3648: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3656: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:713: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:1860: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/buildall.py:191: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: error: abc.abstractstaticmethod is deprecated - Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/_internal/concurrency/api.py:62: error: abc.abstractstaticmethod is deprecated - Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/results.py:465: error: abc.abstractclassmethod is deprecated - Deprecated, use 'classmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/server/database/query_components.py:2: error: abc.abstractproperty is deprecated - Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: error: logging.getLevelName is deprecated - The str -> int case is considered a mistake. [deprecated]
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ci/cleanup/launchdarkly.py:32: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/scratch.py:388: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/cloudbench.py:290: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/scratch/create.py:148: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:31: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:36: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/cleanup/aws.py:107: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: error: abc.abstractproperty is deprecated - Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/serialize.py:81: error: datetime.datetime.utcfromtimestamp is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ antimentionspam/antimentionspam.py:239: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/time_utils.py:42: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/time_utils.py:42: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/message.py:82: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ modnotes/modnotes.py:148: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: error: ast.Str is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: error: ast.Num is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:298:9: error: ast.Str is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:299:9: error: ast.Bytes is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:300:9: error: ast.NameConstant is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:301:9: error: ast.Ellipsis is deprecated - Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: error: datetime.datetime.utcnow is deprecated - Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: error: builtins.bool.__invert__ is deprecated - Will throw an error in Python 3.14. Use `not` for logical negation of bools instead. [deprecated]
Thank you! I'll review this soon.
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: error: logging.getLevelName is deprecated - The str -> int case is considered a mistake. [deprecated]
This is a case where just one overload is deprecated, so I think logging.getLevelName is deprecated is misleading.
For reference, pyright has the same issue:
/Users/jelle/py/tmp/deproverl.py:18:1 - error: The function "f" is deprecated
no more floats (reportDeprecated)
Pyanalyze prints the affected overload (but appears to have a bug where the signature degenerates to (*Any, **Any) -> Any:
Use of deprecated overload (*args: Any[inference], **kwargs: Any[inference]) -> Any[unannotated]: no more floats (code: deprecated)
In /Users/jelle/py/tmp/deproverl.py at line 18
I would want it to either print the actual deprecated signature (like pyanalyze) or say something like "Deprecated call to logging.getLevelName", indicating that the function isn't fully deprecated, just this way of calling it is deprecated.
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ win32/Lib/win32serviceutil.py:135:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ boostedblob/azure_auth.py:549: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ boostedblob/request.py:238: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ cloudinit/sources/azure/errors.py:55: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ cloudinit/sources/azure/kvp.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/sources/azure/test_kvp.py:14: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/cmd/devel/test_logs.py:65: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/cmd/devel/test_logs.py:181: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/integration_tests/test_paths.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/integration_tests/test_paths.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
+ ddtrace/internal/debug.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ddtrace/appsec/_iast/_ast/visitor.py:211: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/appsec/_iast/_ast/visitor.py:221: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/appsec/_iast/_ast/visitor.py:373: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/profiling/exporter/http.py:218: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ ddtrace/profiling/exporter/http.py:219: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/utils/audit.py:94: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/note.py:25: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:164: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:59: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:61: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/blackout.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/blackout.py:60: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:66: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:282: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:335: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:379: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:430: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:574: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:609: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:637: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/auth/utils.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/user.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/user.py:44: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:250: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:252: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:254: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:345: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:347: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/services/user_updater.py:78: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/core_api.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/core_api.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/global_scoreboard_api.py:76: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/lib/authorization.py:51:12: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/scheduler/scheduler.py:65:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ discord/member.py:976: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14.
+ tornado/test/httputil_test.py:444: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ tornado/test/httpclient_test.py:916: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: note: shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead.
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3641: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3648: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3656: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/status.py:713: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/status.py:1860: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1020: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1310: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1317: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1329: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:27: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:98: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`)
+ pyodide-build/pyodide_build/buildall.py:191: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead
+ src/prefect/_internal/concurrency/api.py:62: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead
+ src/prefect/results.py:465: note: abc.abstractclassmethod is deprecated: Deprecated, use 'classmethod' with 'abstractmethod' instead
+ src/prefect/server/database/query_components.py:2: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ ci/cleanup/launchdarkly.py:32: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/scratch.py:388: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/cli/cloudbench.py:290: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/cli/scratch/create.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/load/periodic.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/load/periodic.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/cleanup/aws.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ embedmaker/serialize.py:81: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ antimentionspam/antimentionspam.py:239: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ scheduler/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ embedmaker/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ scheduler/message.py:82: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ modnotes/modnotes.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:298:9: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:299:9: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:300:9: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:301:9: note: ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated.
+ pydantic/color.py:252: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/deprecated/json.py:15: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/deprecated/json.py:131: note: pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead.
+ pydantic/main.py:1160: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated.
+ pydantic/main.py:1212: note: pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated.
+ pydantic/deprecated/tools.py:101: note: pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.
+ pydantic/v1/_hypothesis_plugin.py:105: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/v1/_hypothesis_plugin.py:126: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.
+ pydantic/v1/_hypothesis_plugin.py:139: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.
+ pydantic/deprecated/decorator.py:84: note: pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead.
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: note: builtins.bool.__invert__ is deprecated: Will throw an error in Python 3.14. Use `not` for logical negation of bools instead.
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ win32/Lib/win32serviceutil.py:135:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ boostedblob/azure_auth.py:549: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ boostedblob/request.py:238: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ cloudinit/sources/azure/errors.py:55: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ cloudinit/sources/azure/kvp.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/sources/azure/test_kvp.py:14: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/cmd/devel/test_logs.py:65: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/cmd/devel/test_logs.py:181: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/integration_tests/test_paths.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/integration_tests/test_paths.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
+ ddtrace/internal/debug.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ddtrace/appsec/_iast/_ast/visitor.py:211: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/appsec/_iast/_ast/visitor.py:221: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/appsec/_iast/_ast/visitor.py:373: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/profiling/exporter/http.py:218: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ ddtrace/profiling/exporter/http.py:219: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/utils/audit.py:94: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/note.py:25: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:164: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:59: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:61: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/blackout.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/blackout.py:60: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:66: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:282: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:335: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:379: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:430: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:574: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:609: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:637: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/auth/utils.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/user.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/user.py:44: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:250: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:252: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:254: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:345: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:347: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/services/user_updater.py:78: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/core_api.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/core_api.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/global_scoreboard_api.py:76: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/lib/authorization.py:51:12: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/scheduler/scheduler.py:65:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ discord/member.py:976: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14.
+ tornado/test/httputil_test.py:444: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ tornado/test/httpclient_test.py:916: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: note: shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead.
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:27: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:98: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`)
+ pyodide-build/pyodide_build/buildall.py:191: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead
+ src/prefect/_internal/concurrency/api.py:62: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead
+ src/prefect/results.py:465: note: abc.abstractclassmethod is deprecated: Deprecated, use 'classmethod' with 'abstractmethod' instead
+ src/prefect/server/database/query_components.py:2: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3641: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3648: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3656: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/status.py:713: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/status.py:1860: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1020: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1310: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1317: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1329: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ ci/cleanup/launchdarkly.py:32: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/scratch.py:388: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/cli/cloudbench.py:290: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/cli/scratch/create.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/load/periodic.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/load/periodic.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/cleanup/aws.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ embedmaker/serialize.py:81: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ antimentionspam/antimentionspam.py:239: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ scheduler/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ embedmaker/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ scheduler/message.py:82: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ modnotes/modnotes.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated.
+ pydantic/color.py:252: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/deprecated/json.py:15: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/deprecated/json.py:131: note: pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead.
+ pydantic/main.py:1160: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated.
+ pydantic/main.py:1212: note: pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated.
+ pydantic/deprecated/tools.py:101: note: pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.
+ pydantic/v1/_hypothesis_plugin.py:105: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/v1/_hypothesis_plugin.py:126: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.
+ pydantic/v1/_hypothesis_plugin.py:139: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.
+ pydantic/deprecated/decorator.py:84: note: pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead.
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:298:9: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:299:9: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:300:9: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:301:9: note: ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: note: builtins.bool.__invert__ is deprecated: Will throw an error in Python 3.14. Use `not` for logical negation of bools instead.
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ win32/Lib/win32serviceutil.py:135:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ boostedblob/azure_auth.py:549: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ boostedblob/request.py:238: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
+ ddtrace/internal/debug.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ddtrace/appsec/_iast/_ast/visitor.py:211: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/appsec/_iast/_ast/visitor.py:221: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/appsec/_iast/_ast/visitor.py:373: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/profiling/exporter/http.py:218: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ ddtrace/profiling/exporter/http.py:219: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ cloudinit/sources/azure/errors.py:55: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ cloudinit/sources/azure/kvp.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/sources/azure/test_kvp.py:14: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/cmd/devel/test_logs.py:65: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/cmd/devel/test_logs.py:181: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/integration_tests/test_paths.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/integration_tests/test_paths.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/utils/audit.py:94: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/note.py:25: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:164: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:59: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:61: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/blackout.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/blackout.py:60: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:66: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:282: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:335: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:379: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:430: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:574: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:609: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:637: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/auth/utils.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/user.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/user.py:44: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:250: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:252: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:254: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:345: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:347: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/services/user_updater.py:78: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/core_api.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/core_api.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/global_scoreboard_api.py:76: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/lib/authorization.py:51:12: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/scheduler/scheduler.py:65:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ discord/member.py:976: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14.
+ tornado/test/httputil_test.py:444: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ tornado/test/httpclient_test.py:916: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: note: shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead.
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:27: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:98: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`)
+ pyodide-build/pyodide_build/buildall.py:191: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3641: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3648: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3656: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/status.py:713: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/status.py:1860: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1020: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1310: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1317: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1329: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead
+ src/prefect/_internal/concurrency/api.py:62: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead
+ src/prefect/results.py:465: note: abc.abstractclassmethod is deprecated: Deprecated, use 'classmethod' with 'abstractmethod' instead
+ src/prefect/server/database/query_components.py:2: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ ci/cleanup/launchdarkly.py:32: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/scratch.py:388: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/cli/cloudbench.py:290: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/cli/scratch/create.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/load/periodic.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/load/periodic.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/cleanup/aws.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ embedmaker/serialize.py:81: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ antimentionspam/antimentionspam.py:239: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ scheduler/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ embedmaker/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ scheduler/message.py:82: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ modnotes/modnotes.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:298:9: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:299:9: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:300:9: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:301:9: note: ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated.
+ pydantic/color.py:252: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/deprecated/json.py:15: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/deprecated/json.py:131: note: pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead.
+ pydantic/main.py:1160: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated.
+ pydantic/main.py:1212: note: pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated.
+ pydantic/deprecated/tools.py:101: note: pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.
+ pydantic/v1/_hypothesis_plugin.py:105: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/v1/_hypothesis_plugin.py:126: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.
+ pydantic/v1/_hypothesis_plugin.py:139: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.
+ pydantic/deprecated/decorator.py:84: note: pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead.
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: note: builtins.bool.__invert__ is deprecated: Will throw an error in Python 3.14. Use `not` for logical negation of bools instead.
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ win32/Lib/win32serviceutil.py:135:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead.
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ boostedblob/azure_auth.py:549: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ boostedblob/request.py:238: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ cloudinit/sources/azure/errors.py:55: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ cloudinit/sources/azure/kvp.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/sources/azure/test_kvp.py:14: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/cmd/devel/test_logs.py:65: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/unittests/cmd/devel/test_logs.py:181: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/integration_tests/test_paths.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ tests/integration_tests/test_paths.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
+ ddtrace/internal/debug.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ddtrace/appsec/_iast/_ast/visitor.py:211: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/appsec/_iast/_ast/visitor.py:221: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/appsec/_iast/_ast/visitor.py:373: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ ddtrace/profiling/exporter/http.py:218: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ ddtrace/profiling/exporter/http.py:219: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/utils/audit.py:94: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/note.py:25: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/key.py:164: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:59: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/heartbeat.py:61: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/blackout.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/blackout.py:60: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:66: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:282: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:335: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:379: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:430: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:574: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:609: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/alert.py:637: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/auth/utils.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/user.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/models/user.py:44: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:250: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:252: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:254: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:345: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ alerta/database/backends/mongodb/utils.py:347: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/services/user_updater.py:78: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/core_api.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/core_api.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ backend/api/global_scoreboard_api.py:76: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/lib/authorization.py:51:12: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ dragonchain/scheduler/scheduler.py:65:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ discord/member.py:976: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14.
+ tornado/test/httputil_test.py:444: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ tornado/test/httpclient_test.py:916: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: note: shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead.
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3641: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3648: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/utils.py:3656: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/status.py:713: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/status.py:1860: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1020: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1310: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1317: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ paasta_tools/cli/cmds/logs.py:1329: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:27: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:98: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`)
+ pyodide-build/pyodide_build/buildall.py:191: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead
+ src/prefect/_internal/concurrency/api.py:62: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead
+ src/prefect/results.py:465: note: abc.abstractclassmethod is deprecated: Deprecated, use 'classmethod' with 'abstractmethod' instead
+ src/prefect/server/database/query_components.py:2: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake.
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ ci/cleanup/launchdarkly.py:32: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/scratch.py:388: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/cli/cloudbench.py:290: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ misc/python/materialize/cli/scratch/create.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/load/periodic.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/load/periodic.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ ci/cleanup/aws.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ embedmaker/serialize.py:81: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC)
+ antimentionspam/antimentionspam.py:239: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ scheduler/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ embedmaker/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ scheduler/message.py:82: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
+ modnotes/modnotes.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated.
+ pydantic/color.py:252: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/deprecated/json.py:15: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/deprecated/json.py:131: note: pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead.
+ pydantic/main.py:1160: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated.
+ pydantic/main.py:1212: note: pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated.
+ pydantic/deprecated/tools.py:101: note: pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead.
+ pydantic/v1/_hypothesis_plugin.py:105: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.
+ pydantic/v1/_hypothesis_plugin.py:126: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.
+ pydantic/v1/_hypothesis_plugin.py:139: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber.
+ pydantic/deprecated/decorator.py:84: note: pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead.
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:298:9: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:299:9: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:300:9: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/elements/doc_string.py:301:9: note: ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC)
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: note: builtins.bool.__invert__ is deprecated: Will throw an error in Python 3.14. Use `not` for logical negation of bools instead.
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:135:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/azure_auth.py:549: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/request.py:238: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
+ ddtrace/internal/debug.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:211: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:221: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:373: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:218: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ddtrace/profiling/exporter/http.py:219: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/errors.py:55: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:65: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:181: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/utils/audit.py:94: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/note.py:25: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:164: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:59: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:61: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:60: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:66: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:282: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:335: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:379: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:430: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:574: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:609: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:637: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/auth/utils.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:44: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/services/user_updater.py:78: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/global_scoreboard_api.py:76: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/authorization.py:51:12: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ discord/member.py:976: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ tornado/test/httpclient_test.py:916: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: note: shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3641: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3648: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3656: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:713: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:1860: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:27: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pyodide-build/pyodide_build/xbuildenv_releases.py:98: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pyodide-build/pyodide_build/buildall.py:191: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/_internal/concurrency/api.py:62: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/results.py:465: note: abc.abstractclassmethod is deprecated: Deprecated, use 'classmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/server/database/query_components.py:2: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ci/cleanup/launchdarkly.py:32: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/scratch.py:388: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/cloudbench.py:290: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/scratch/create.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/cleanup/aws.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/serialize.py:81: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ antimentionspam/antimentionspam.py:239: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/message.py:82: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ modnotes/modnotes.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/color.py:252: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:15: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:131: note: pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead. [deprecated]
+ pydantic/main.py:1160: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/main.py:1212: note: pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated. [deprecated]
+ pydantic/deprecated/tools.py:101: note: pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:105: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:126: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:139: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/deprecated/decorator.py:84: note: pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead. [deprecated]
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:298:9: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:299:9: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:300:9: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:301:9: note: ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: note: builtins.bool.__invert__ is deprecated: Will throw an error in Python 3.14. Use `not` for logical negation of bools instead. [deprecated]
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:135:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/azure_auth.py:549: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/request.py:238: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/errors.py:55: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:65: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:181: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
+ ddtrace/internal/debug.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:211: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:221: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:373: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:218: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ddtrace/profiling/exporter/http.py:219: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/utils/audit.py:94: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/note.py:25: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:164: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:59: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:61: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:60: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:66: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:282: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:335: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:379: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:430: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:574: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:609: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:637: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/auth/utils.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:44: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/services/user_updater.py:78: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/global_scoreboard_api.py:76: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/authorization.py:51:12: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ discord/member.py:976: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ tornado/test/httpclient_test.py:916: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: note: shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:27: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pyodide-build/pyodide_build/xbuildenv_releases.py:98: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pyodide-build/pyodide_build/buildall.py:191: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3641: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3648: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3656: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:713: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:1860: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/_internal/concurrency/api.py:62: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/results.py:465: note: abc.abstractclassmethod is deprecated: Deprecated, use 'classmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/server/database/query_components.py:2: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ci/cleanup/launchdarkly.py:32: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/scratch.py:388: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/cloudbench.py:290: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/scratch/create.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/cleanup/aws.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/serialize.py:81: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ antimentionspam/antimentionspam.py:239: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/message.py:82: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ modnotes/modnotes.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/color.py:252: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:15: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:131: note: pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead. [deprecated]
+ pydantic/main.py:1160: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/main.py:1212: note: pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated. [deprecated]
+ pydantic/deprecated/tools.py:101: note: pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:105: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:126: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:139: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/deprecated/decorator.py:84: note: pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead. [deprecated]
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:298:9: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:299:9: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:300:9: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:301:9: note: ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: note: builtins.bool.__invert__ is deprecated: Will throw an error in Python 3.14. Use `not` for logical negation of bools instead. [deprecated]
I would want it to either print the actual deprecated signature (like pyanalyze) or say something like "Deprecated call to logging.getLevelName", indicating that the function isn't fully deprecated, just this way of calling it is deprecated.
This request was not too hard to implement (at least concerning the available test cases). The suggested pattern is:
__main__.A.__add__ is deprecated [overload def (__main__.A, builtins.int)]: no A + int
This step offered the chance to report wrong orders of @deprecated and @overload. I am not aware this causes any real trouble, so I selected to report the wrong order as a note:
@overload should be placed before @deprecated
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:135:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
boostedblob (https://github.com/hauntsaninja/boostedblob)
+ boostedblob/google_auth.py:199: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/azure_auth.py:549: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ boostedblob/request.py:238: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: logging.getLevelName is deprecated [overload def (level: builtins.str) -> Any]: The str -> int case is considered a mistake. [deprecated]
+ ddtrace/internal/debug.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:211: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:221: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:373: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:218: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ddtrace/profiling/exporter/http.py:219: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
black (https://github.com/psf/black)
+ src/black/handle_ipynb_magics.py:297:32: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/errors.py:55: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:65: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:181: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/utils/audit.py:94: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/note.py:25: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:164: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:59: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:61: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:60: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:66: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:75: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:282: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:335: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:379: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:430: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:574: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:609: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:637: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/auth/utils.py:52: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:44: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: logging.getLevelName is deprecated [overload def (level: builtins.str) -> Any]: The str -> int case is considered a mistake. [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/services/user_updater.py:78: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:37: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/global_scoreboard_api.py:76: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/authorization.py:51:12: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ pytest_robotframework/__init__.py:463: note: @overload should be placed before @deprecated
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ discord/member.py:976: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ tornado/test/httpclient_test.py:916: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: note: shutil._RmtreeType.__call__ is deprecated [overload def (self: shutil._RmtreeType, path: Union[builtins.str, builtins.bytes, os.PathLike[builtins.str], os.PathLike[builtins.bytes]], ignore_errors: builtins.bool, onerror: def (def (*Any, **Any) -> Any, builtins.str, tuple[type[builtins.BaseException], builtins.BaseException, types.TracebackType]) -> builtins.object, *, onexc: None =, dir_fd: Union[builtins.int, None] =)]: The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:27: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pyodide-build/pyodide_build/xbuildenv_releases.py:98: note: pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pyodide-build/pyodide_build/buildall.py:191: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3641: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3648: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3656: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:713: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:1860: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/_internal/concurrency/api.py:62: note: abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/results.py:465: note: abc.abstractclassmethod is deprecated: Deprecated, use 'classmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/server/database/query_components.py:2: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: logging.getLevelName is deprecated [overload def (level: builtins.str) -> Any]: The str -> int case is considered a mistake. [deprecated]
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ci/cleanup/launchdarkly.py:32: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/scratch.py:388: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/cloudbench.py:290: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/scratch/create.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:31: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:36: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/cleanup/aws.py:107: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/serialize.py:81: note: datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ antimentionspam/antimentionspam.py:239: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/time_utils.py:42: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/message.py:82: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ modnotes/modnotes.py:148: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:298:9: note: ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:299:9: note: ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:300:9: note: ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:301:9: note: ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/color.py:252: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:15: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:131: note: pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead. [deprecated]
+ pydantic/main.py:1160: note: pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/main.py:1212: note: pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated. [deprecated]
+ pydantic/deprecated/tools.py:101: note: pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:105: note: pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:126: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:139: note: pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/deprecated/decorator.py:84: note: pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead. [deprecated]
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: note: builtins.bool.__invert__ is deprecated: Will throw an error in Python 3.14. Use `not` for logical negation of bools instead. [deprecated]
Diff from mypy_primer, showing the effect of this PR on open source code:
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:135:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/errors.py:55: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:65: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/cmd/devel/test_logs.py:181: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:75: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:107: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: overload def (level: builtins.str) -> Any of function logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
+ ddtrace/internal/debug.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:211: note: class ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:221: note: class ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:373: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:218: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ddtrace/profiling/exporter/http.py:219: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: class ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/utils/audit.py:94: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/note.py:25: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:31: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:164: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:59: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:61: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:60: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:66: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:75: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:282: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:335: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:379: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:430: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:574: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:609: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:637: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/auth/utils.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:44: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: overload def (level: builtins.str) -> Any of function logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:596: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:627: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:818: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/services/user_updater.py:78: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:36: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/global_scoreboard_api.py:76: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/authorization.py:51:12: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ pytest_robotframework/__init__.py:463: note: @overload should be placed before @deprecated
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:920: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ discord/member.py:976: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: function pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ tornado/test/httpclient_test.py:916: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:114: note: overload def (self: shutil._RmtreeType, path: Union[builtins.str, builtins.bytes, os.PathLike[builtins.str], os.PathLike[builtins.bytes]], ignore_errors: builtins.bool, onerror: def (def (*Any, **Any) -> Any, builtins.str, tuple[type[builtins.BaseException], builtins.BaseException, types.TracebackType]) -> builtins.object, *, onexc: None =, dir_fd: Union[builtins.int, None] =) of function shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
pyodide (https://github.com/pyodide/pyodide)
+ pyodide-build/pyodide_build/xbuildenv_releases.py:27: note: class pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pyodide-build/pyodide_build/xbuildenv_releases.py:98: note: class pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pyodide-build/pyodide_build/buildall.py:191: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1474: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3641: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3648: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3656: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:713: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:1860: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: class abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/_internal/concurrency/api.py:62: note: class abc.abstractstaticmethod is deprecated: Deprecated, use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/results.py:465: note: class abc.abstractclassmethod is deprecated: Deprecated, use 'classmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/server/database/query_components.py:2: note: class abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: overload def (level: builtins.str) -> Any of function logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ci/cleanup/launchdarkly.py:32: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/scratch.py:388: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/cloudbench.py:290: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/scratch/create.py:148: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:31: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:36: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/cleanup/aws.py:107: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: class abc.abstractproperty is deprecated: Deprecated, use 'property' with 'abstractmethod' instead [deprecated]
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/serialize.py:81: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ antimentionspam/antimentionspam.py:239: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/message.py:82: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ modnotes/modnotes.py:148: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/color.py:252: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:15: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:131: note: function pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead. [deprecated]
+ pydantic/main.py:1160: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/main.py:1212: note: function pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated. [deprecated]
+ pydantic/deprecated/tools.py:101: note: function pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:105: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:126: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:139: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/deprecated/decorator.py:84: note: function pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead. [deprecated]
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:214:30: note: class ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: class ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:298:9: note: class ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:299:9: note: class ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:300:9: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:301:9: note: class ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
jax (https://github.com/google/jax)
... (truncated 3 lines) ...```
I refactored the code and polished the messages a little. In my opinion, the "basic support" is ready now. I may find time to react to possible further remarks today, but then I am off for a while. So, do not hesitate to make any changes you think are useful by yourself.
@tyralla are you looking at implementing the feedback for this? I am happy to pick up where you left off otherwise.
Diff from mypy_primer, showing the effect of this PR on open source code:
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/serialize.py:81: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ antimentionspam/antimentionspam.py:239: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ embedmaker/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ scheduler/message.py:82: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ modnotes/modnotes.py:148: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/fetch_strategy.py:849: note: overload def (self: shutil._RmtreeType, path: Union[builtins.str, builtins.bytes, os.PathLike[builtins.str], os.PathLike[builtins.bytes]], ignore_errors: builtins.bool, onerror: def (def (*Any, **Any) -> Any, builtins.str, tuple[type[builtins.BaseException], builtins.BaseException, types.TracebackType]) -> builtins.object, *, onexc: None =, dir_fd: Union[builtins.int, None] =) of function shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
+ lib/spack/spack/util/package_hash.py:30: note: class ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: class abc.abstractproperty is deprecated: Use 'property' with 'abstractmethod' instead [deprecated]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/color.py:252: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:16: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:132: note: function pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead. [deprecated]
+ pydantic/main.py:1175: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/main.py:1227: note: function pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated. [deprecated]
+ pydantic/deprecated/tools.py:101: note: function pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:105: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:126: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:139: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/deprecated/decorator.py:84: note: function pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead. [deprecated]
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/errors.py:55: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:68: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ tests/integration_tests/test_paths.py:100: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:140:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: overload def (level: builtins.str) -> Any of function logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
+ ddtrace/internal/debug.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:224: note: class ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:234: note: class ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:386: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:219: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ddtrace/profiling/exporter/http.py:220: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/utils/audit.py:94: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/note.py:25: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:31: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/key.py:164: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:59: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/heartbeat.py:61: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/blackout.py:60: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:66: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:75: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:282: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:335: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:379: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:430: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:574: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:609: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/alert.py:637: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/auth/utils.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/models/user.py:44: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: overload def (level: builtins.str) -> Any of function logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
comtypes (https://github.com/enthought/comtypes)
+ comtypes/test/__init__.py:140: note: function unittest.loader.makeSuite is deprecated: Deprecated in Python 3.11; removal scheduled for Python 3.13 [deprecated]
+ comtypes/test/__init__.py:210: note: function unittest.loader.makeSuite is deprecated: Deprecated in Python 3.11; removal scheduled for Python 3.13 [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:606: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:632: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:823: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/services/user_updater.py:78: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:36: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/core_api.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ backend/api/global_scoreboard_api.py:76: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:946: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ discord/member.py:1002: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/lib/authorization.py:51:12: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ pytest_robotframework/__init__.py:471: note: @overload should be placed before @deprecated
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: function pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ tornado/test/httpclient_test.py:915: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: class abc.abstractstaticmethod is deprecated: Use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/_internal/concurrency/api.py:62: note: class abc.abstractstaticmethod is deprecated: Use 'staticmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/results.py:596: note: class abc.abstractclassmethod is deprecated: Use 'classmethod' with 'abstractmethod' instead [deprecated]
+ src/prefect/server/database/query_components.py:2: note: class abc.abstractproperty is deprecated: Use 'property' with 'abstractmethod' instead [deprecated]
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1500: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3673: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3680: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/utils.py:3688: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:721: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/status.py:1868: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/buildkite_insights/util/data_io.py:75: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.UTC) [deprecated]
+ ci/cleanup/launchdarkly.py:32: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/scratch.py:388: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/cloudbench.py:290: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ misc/python/materialize/cli/scratch/create.py:148: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:31: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/load/periodic.py:36: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
+ ci/cleanup/aws.py:105: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
python-sop (https://gitlab.com/dkg/python-sop)
+ sop/__init__.py:424: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
mkosi (https://github.com/systemd/mkosi)
+ mkosi/log.py:92:34: note: overload def (level: builtins.str) -> Any of function logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:117: note: overload def (self: shutil._RmtreeType, path: Union[builtins.str, builtins.bytes, os.PathLike[builtins.str], os.PathLike[builtins.bytes]], ignore_errors: builtins.bool, onerror: def (def (*Any, **Any) -> Any, builtins.str, tuple[type[builtins.BaseException], builtins.BaseException, types.TracebackType]) -> builtins.object, *, onexc: None =, dir_fd: Union[builtins.int, None] =) of function shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/runtime/scriptrunner/magic.py: note: In function "_get_st_write_from_expr":
+ lib/streamlit/runtime/scriptrunner/magic.py:227:30: note: class ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py: note: In function "_get_variable_name_from_code_str":
+ lib/streamlit/elements/doc_string.py:297:9: note: class ast.Num is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:298:9: note: class ast.Str is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:299:9: note: class ast.Bytes is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:300:9: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/elements/doc_string.py:301:9: note: class ast.Ellipsis is deprecated: Replaced by ast.Constant; removal scheduled for Python 3.14 [deprecated]
+ lib/streamlit/runtime/credentials.py: note: In function "_send_email":
+ lib/streamlit/runtime/credentials.py:85:10: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.UTC) [deprecated]
jax (https://github.com/google/jax)
+ jax/_src/scipy/optimize/_lbfgs.py:146: note: function builtins.bool.__invert__ is deprecated: Will throw an error in Python 3.14. Use `not` for logical negation of bools instead. [deprecated]
Sorry, I was too busy the last few weeks to continue working on it.
@Youssefares: I could try to thoroughly address the last remarks in mid-September, but definitely not earlier, and Python 3.13 is on its way. So please do not hesitate if you can start sooner.
@ilevkivskyi:
- As CallableType already has "symbol properties" ('name', 'definition') for error messages, I assumed that adding deprecation messages would be fine. I have had no time so far to check how many complications moving this property would cause. (Maybe not only for overloads but also for descriptors and special methods like
__add__?) - I also assumed there should be no problem with caching because a relevant change like adding or removing a descriptor should not remain unnoticed (maybe except for changing a deprecation message). But as you were in doubt, I added a few preliminary fine-grained incremental tests and, in fact, found a thing to improve (8c0260e8b4f529fa9c84cf648c815cf8bcc20e16, just pushed). Unfortunately, one test case (with transitive use sites) still fails (cf2dcaf41ddff5a5df2777911675d4bc3f1206f4), and I did not have enough time to investigate why. All I can say is that when I set up
testAddFunctionDeprecationIndirectImport1as an actual project (files on disk) and use the daemon "normally", everything seems to work well. Hence, I am unsure whether this is caused by a flaw in my implementation or a test setup problem. - I must admit, I still do not know what you mean by "coarse-grained incremental mode". The "normal" caching on disk when using Mypy repeatedly without the Mypy server being involved?
@Youssefares: Did you find time to work on it? I could restart soon, but likely only in small steps. (Especially if I have to solve the mystery about testAddFunctionDeprecationIndirectImport1 myself.) So, if you think you can finish this PR faster, please do. Continuing as a Tag Team would also be cool if you like.
Diff from mypy_primer, showing the effect of this PR on open source code:
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: class abc.abstractproperty is deprecated: Use 'property' with 'abstractmethod' instead [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ embedmaker/serialize.py:81: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
+ antimentionspam/antimentionspam.py:239: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ scheduler/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ embedmaker/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ scheduler/message.py:82: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ modnotes/modnotes.py:148: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/__init__.py:59: note: function pydantic.deprecated.class_validators.root_validator is deprecated: Pydantic V1 style `@root_validator` validators are deprecated. You should migrate to Pydantic V2 style `@model_validator` validators, see the migration guide for more details [deprecated]
+ pydantic/__init__.py:60: note: class pydantic.deprecated.config.BaseConfig is deprecated: BaseConfig is deprecated. Use the `pydantic.ConfigDict` instead. [deprecated]
+ pydantic/__init__.py:60: note: class pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pydantic/color.py:252: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:16: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:132: note: function pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead. [deprecated]
+ pydantic/main.py:1188: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/main.py:1240: note: function pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated. [deprecated]
+ pydantic/main.py:1247: note: function pydantic.main.BaseModel.parse_obj is deprecated: The `parse_obj` method is deprecated; use `model_validate` instead. [deprecated]
+ pydantic/deprecated/tools.py:101: note: function pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:105: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:126: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:139: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/deprecated/decorator.py:84: note: function pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead. [deprecated]
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/injecting.py:106: note: class alluka._self_injecting.AsyncSelfInjecting is deprecated: Use Client.auto_inject_async [deprecated]
+ tanjun/context/base.py:58: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/base.py:133: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/base.py:136: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:321: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1042: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1077: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1085: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:114: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:184: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:189: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/autocomplete.py:95: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:98: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:153: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:156: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/clients.py:1005: note: overload def (self: tanjun.clients.Client, rest: hikari.api.rest.RESTClient, *, cache: Union[hikari.api.cache.Cache, None] =, events: Union[hikari.api.event_manager.EventManager, None] =, server: Union[hikari.api.interaction_server.InteractionServer, None] =, shards: Union[hikari.traits.ShardAware, None] =, voice: Union[hikari.api.voice.VoiceComponent, None] =, event_managed: builtins.bool =, injector: Union[alluka.abc.Client, None] =, mention_prefix: builtins.bool =, set_global_commands: Union[Union[hikari.guilds.PartialGuild, hikari.snowflakes.Snowflake, builtins.int], builtins.bool] =, declare_global_commands: Union[typing.Sequence[Union[hikari.guilds.PartialGuild, hikari.snowflakes.Snowflake, builtins.int]], Union[hikari.guilds.PartialGuild, hikari.snowflakes.Snowflake, builtins.int], builtins.bool] =, command_ids: Union[typing.Mapping[builtins.str, Union[hikari.commands.PartialCommand, hikari.snowflakes.Snowflake, builtins.int]], None] =, message_ids: Union[typing.Mapping[builtins.str, Union[hikari.commands.PartialCommand, hikari.snowflakes.Snowflake, builtins.int]], None] =, user_ids: Union[typing.Mapping[builtins.str, Union[hikari.commands.PartialCommand, hikari.snowflakes.Snowflake, builtins.int]], None] =, _stack_level: builtins.int =) of function tanjun.clients.Client.__init__ is deprecated: Use the declare_global_commands arg instead [deprecated]
+ tanjun/clients.py:1129: note: overload def (self: tanjun.clients.Client, rest: hikari.api.rest.RESTClient, *, cache: Union[hikari.api.cache.Cache, None] =, events: Union[hikari.api.event_manager.EventManager, None] =, server: Union[hikari.api.interaction_server.InteractionServer, None] =, shards: Union[hikari.traits.ShardAware, None] =, voice: Union[hikari.api.voice.VoiceComponent, None] =, event_managed: builtins.bool =, injector: Union[alluka.abc.Client, None] =, mention_prefix: builtins.bool =, set_global_commands: Union[Union[hikari.guilds.PartialGuild, hikari.snowflakes.Snowflake, builtins.int], builtins.bool] =, declare_global_commands: Union[typing.Sequence[Union[hikari.guilds.PartialGuild, hikari.snowflakes.Snowflake, builtins.int]], Union[hikari.guilds.PartialGuild, hikari.snowflakes.Snowflake, builtins.int], builtins.bool] =, command_ids: Union[typing.Mapping[builtins.str, Union[hikari.commands.PartialCommand, hikari.snowflakes.Snowflake, builtins.int]], None] =, message_ids: Union[typing.Mapping[builtins.str, Union[hikari.commands.PartialCommand, hikari.snowflakes.Snowflake, builtins.int]], None] =, user_ids: Union[typing.Mapping[builtins.str, Union[hikari.commands.PartialCommand, hikari.snowflakes.Snowflake, builtins.int]], None] =, _stack_level: builtins.int =) of function tanjun.clients.Client.__init__ is deprecated: Use the declare_global_commands arg instead [deprecated]
+ tanjun/annotations.py:1699: note: @overload should be placed before @deprecated
cloud-init (https://github.com/canonical/cloud-init)
+ tests/integration_tests/clouds.py:328: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ cloudinit/sources/azure/errors.py:55: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/integration_tests/test_paths.py:69: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/integration_tests/test_paths.py:101: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/fetch_strategy.py:849: note: overload def (self: shutil._RmtreeType, path: Union[builtins.str, builtins.bytes, os.PathLike[builtins.str], os.PathLike[builtins.bytes]], ignore_errors: builtins.bool, onerror: def (def (*Any, **Any) -> Any, builtins.str, tuple[type[builtins.BaseException], builtins.BaseException, types.TracebackType]) -> builtins.object, *, onexc: None =, dir_fd: Union[builtins.int, None] =) of function shutil._RmtreeType.__call__ is deprecated: The `onerror` parameter is deprecated. Use `onexc` instead. [deprecated]
+ lib/spack/spack/util/package_hash.py:30: note: class ast.Str is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:140:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/commands/__init__.py: note: In function "OnlyWithResolvedHeapSyms":
+ pwndbg/commands/__init__.py:453: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ pwndbg/commands/__init__.py:477: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ pwndbg/commands/__init__.py:486: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ pwndbg/commands/__init__.py:493: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ pwndbg/commands/__init__.py:504: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ pwndbg/commands/__init__.py:508: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ pwndbg/commands/__init__.py:515: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/flare/flare.py:70: note: overload def (level: builtins.str) -> Any of function logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
+ ddtrace/internal/debug.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:224: note: class ast.Bytes is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:234: note: class ast.Num is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:386: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:219: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
+ ddtrace/profiling/exporter/http.py:220: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/utils/audit.py:94: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/note.py:25: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:31: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:164: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:59: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:61: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/blackout.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/blackout.py:60: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:66: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:75: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:282: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:335: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:379: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:430: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:574: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:609: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:637: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/auth/utils.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/user.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/user.py:44: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/logging.py:518: note: overload def (level: builtins.str) -> Any of function logging.getLevelName is deprecated: The str -> int case is considered a mistake. [deprecated]
comtypes (https://github.com/enthought/comtypes)
+ comtypes/test/__init__.py:140: note: function unittest.loader.makeSuite is deprecated: Deprecated in Python 3.11; removal scheduled for Python 3.13 [deprecated]
+ comtypes/test/__init__.py:210: note: function unittest.loader.makeSuite is deprecated: Deprecated in Python 3.11; removal scheduled for Python 3.13 [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:609: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:635: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:826: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/services/user_updater.py:78: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/core_api.py:36: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/core_api.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/global_scoreboard_api.py:76: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:946: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ discord/member.py:1002: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ discord/ext/tasks/__init__.py:227: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/lib/authorization.py:51:12: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/data/history/history_utils.py:125: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ freqtrade/rpc/api_server/api_ws.py:42: note: function pydantic.main.BaseModel.dict is deprecated: The `dict` method is deprecated; use `model_dump` instead. [deprecated]
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ pytest_robotframework/__init__.py:471: note: @overload should be placed before @deprecated
sockeye (https://github.com/awslabs/sockeye)
+ sockeye/utils.py:843: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ sockeye/model.py:183: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ sockeye/model.py:187: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/_internal/concurrency/api.py:49: note: class abc.abstractstaticmethod is deprecated: Use 'staticmethod' with 'abstractmethod' instead [deprecated]
... (truncated 63 lines) ...```
@Youssefares: Okay, then I'll pick up again.
@ilevkivskyi: a6d0e59e29523f0493a4a7433c42fd173d262ea7 addresses your second remark (moving the deprecation note creation from checker.py to semanal.py) without any functional changes, as far as the tests tell. testAddFunctionDeprecationIndirectImport1 still fails.
Diff from mypy_primer, showing the effect of this PR on open source code:
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: class abc.abstractproperty is deprecated: Use 'property' with 'abstractmethod' instead [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ embedmaker/serialize.py:81: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
+ antimentionspam/antimentionspam.py:239: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ scheduler/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ embedmaker/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ scheduler/message.py:82: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ modnotes/modnotes.py:148: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: class ast.Str is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/reporting/handlers.py:378: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
+ tests/integration_tests/clouds.py:328: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ cloudinit/sources/azure/errors.py:55: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/integration_tests/test_paths.py:69: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/integration_tests/test_paths.py:101: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/__init__.py:59: note: function pydantic.deprecated.class_validators.root_validator is deprecated: Pydantic V1 style `@root_validator` validators are deprecated. You should migrate to Pydantic V2 style `@model_validator` validators, see the migration guide for more details [deprecated]
+ pydantic/__init__.py:59: note: function pydantic.deprecated.class_validators.validator is deprecated: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details [deprecated]
+ pydantic/__init__.py:60: note: class pydantic.deprecated.config.BaseConfig is deprecated: BaseConfig is deprecated. Use the `pydantic.ConfigDict` instead. [deprecated]
+ pydantic/__init__.py:60: note: class pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pydantic/color.py:252: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:16: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:132: note: function pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead. [deprecated]
+ pydantic/main.py:1219: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/main.py:1271: note: function pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated. [deprecated]
+ pydantic/main.py:1278: note: function pydantic.main.BaseModel.parse_obj is deprecated: The `parse_obj` method is deprecated; use `model_validate` instead. [deprecated]
+ pydantic/deprecated/tools.py:101: note: function pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:105: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:126: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:139: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/deprecated/decorator.py:84: note: function pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead. [deprecated]
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/injecting.py:106: note: class alluka._self_injecting.AsyncSelfInjecting is deprecated: Use Client.auto_inject_async [deprecated]
+ tanjun/context/base.py:58: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/base.py:133: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/base.py:136: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:321: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1042: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1077: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1085: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:114: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:184: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:189: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/autocomplete.py:95: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:98: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:153: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:156: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/annotations.py:1699: note: @overload should be placed before @deprecated
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:140:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/commands/__init__.py: note: In function "OnlyWithResolvedHeapSyms":
+ pwndbg/commands/__init__.py:453: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/debug.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:228: note: class ast.Bytes is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:238: note: class ast.Num is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:390: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:219: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
+ ddtrace/profiling/exporter/http.py:220: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/utils/audit.py:94: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/note.py:25: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:31: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:164: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:59: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:61: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/blackout.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/blackout.py:60: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:66: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:75: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:282: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:335: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:379: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:430: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:574: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:609: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:637: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/auth/utils.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/user.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/user.py:44: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:946: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ discord/member.py:1002: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ discord/ext/tasks/__init__.py:227: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
comtypes (https://github.com/enthought/comtypes)
+ comtypes/test/__init__.py:140: note: function unittest.loader.makeSuite is deprecated: Deprecated in Python 3.11; removal scheduled for Python 3.13 [deprecated]
+ comtypes/test/__init__.py:210: note: function unittest.loader.makeSuite is deprecated: Deprecated in Python 3.11; removal scheduled for Python 3.13 [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/services/user_updater.py:78: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/core_api.py:36: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/core_api.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/global_scoreboard_api.py:76: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:609: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:635: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:826: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/lib/authorization.py:51:12: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/data/history/history_utils.py:125: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ freqtrade/rpc/api_server/api_ws.py:42: note: function pydantic.main.BaseModel.dict is deprecated: The `dict` method is deprecated; use `model_dump` instead. [deprecated]
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ pytest_robotframework/__init__.py:471: note: @overload should be placed before @deprecated
sockeye (https://github.com/awslabs/sockeye)
+ sockeye/utils.py:843: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ sockeye/model.py:183: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ sockeye/model.py:187: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1496: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/utils.py:3673: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/utils.py:3680: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/utils.py:3688: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/spark_tools.py:136: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/spark_tools.py:204: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/setup_istio_mesh.py:106: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/smartstack_tools.py:476: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/smartstack_tools.py:533: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:809: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:824: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:829: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1024: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
optuna (https://github.com/optuna/optuna)
+ optuna/_gp/gp.py:260: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: function pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
... (truncated 25 lines) ...```
@ilevkivskyi
I moved the attribute deprecated from the types CallableType and Overloaded to the symbol nodes FuncDef and OverloadedFuncDef. All in all, it improves the code. Except for the case of specific overload deprecations. Maybe you know a better solution than the one I implemented.
After all these changes, testAddFunctionDeprecationIndirectImport1 still fails, which strengthens my impression that the test itself is flawed.
Hm, I don't see anything obviously wrong with the test. As a guess, you need to update this part to include the new flag https://github.com/python/mypy/blob/master/mypy/server/astdiff.py#L228-L256 (since currently you effectively rely on node kind switching from function to decorator to trigger the update).
My first attempt to include the new flag into the returned tuple made no difference. While thinking about it, I came across the snapshot_symbol_table function. After the change proposed by commit 09a53d5b9a4663ed924204e344fdfc2bd34eae0a, all tests passed. However, I have no idea about the further implications of this change (performance?). I could investigate further next week, but maybe it is directly clear to you whether the proposed change is a good or bad idea.
Diff from mypy_primer, showing the effect of this PR on open source code:
parso (https://github.com/davidhalter/parso)
+ parso/tree.py:1: note: class abc.abstractproperty is deprecated: Use 'property' with 'abstractmethod' instead [deprecated]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
+ rolemanagement/events.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ embedmaker/serialize.py:81: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
+ antimentionspam/antimentionspam.py:239: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ scheduler/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ embedmaker/time_utils.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ scheduler/message.py:82: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ modnotes/modnotes.py:148: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
spack (https://github.com/spack/spack)
+ lib/spack/spack/util/package_hash.py:30: note: class ast.Str is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/deprecated/parse.py:78: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/__init__.py:59: note: function pydantic.deprecated.class_validators.root_validator is deprecated: Pydantic V1 style `@root_validator` validators are deprecated. You should migrate to Pydantic V2 style `@model_validator` validators, see the migration guide for more details [deprecated]
+ pydantic/__init__.py:59: note: function pydantic.deprecated.class_validators.validator is deprecated: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details [deprecated]
+ pydantic/__init__.py:60: note: class pydantic.deprecated.config.BaseConfig is deprecated: BaseConfig is deprecated. Use the `pydantic.ConfigDict` instead. [deprecated]
+ pydantic/__init__.py:60: note: class pydantic.deprecated.config.Extra is deprecated: Extra is deprecated. Use literal values instead (e.g. `extra='allow'`) [deprecated]
+ pydantic/color.py:252: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:16: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/deprecated/json.py:132: note: function pydantic.deprecated.json.pydantic_encoder is deprecated: `pydantic_encoder` is deprecated, use `pydantic_core.to_jsonable_python` instead. [deprecated]
+ pydantic/main.py:1219: note: function pydantic.deprecated.parse.load_str_bytes is deprecated: `load_str_bytes` is deprecated. [deprecated]
+ pydantic/main.py:1271: note: function pydantic.deprecated.parse.load_file is deprecated: `load_file` is deprecated. [deprecated]
+ pydantic/main.py:1278: note: function pydantic.main.BaseModel.parse_obj is deprecated: The `parse_obj` method is deprecated; use `model_validate` instead. [deprecated]
+ pydantic/deprecated/tools.py:101: note: function pydantic.deprecated.tools.schema_of is deprecated: `schema_of` is deprecated. Use `pydantic.TypeAdapter.json_schema` instead. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:105: note: class pydantic.color.Color is deprecated: The `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:126: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/v1/_hypothesis_plugin.py:139: note: class pydantic.types.PaymentCardNumber is deprecated: The `PaymentCardNumber` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_payment/#pydantic_extra_types.payment.PaymentCardNumber. [deprecated]
+ pydantic/deprecated/decorator.py:84: note: function pydantic.deprecated.decorator.validate_arguments is deprecated: The `validate_arguments` method is deprecated; use `validate_call` instead. [deprecated]
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/injecting.py:106: note: class alluka._self_injecting.AsyncSelfInjecting is deprecated: Use Client.auto_inject_async [deprecated]
+ tanjun/context/base.py:58: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/base.py:133: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/base.py:136: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:321: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1042: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1077: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/slash.py:1085: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:114: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:184: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/message.py:189: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/autocomplete.py:95: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:98: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:153: note: function alluka._context.BasicContext._set_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/context/menu.py:156: note: function alluka._context.BasicContext._remove_type_special_case is deprecated: Use ContextOverride [deprecated]
+ tanjun/annotations.py:1699: note: @overload should be placed before @deprecated
cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/reporting/handlers.py:378: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
+ tests/integration_tests/clouds.py:328: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ cloudinit/sources/azure/errors.py:55: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ cloudinit/sources/azure/kvp.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/unittests/sources/azure/test_kvp.py:14: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/integration_tests/test_paths.py:69: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ tests/integration_tests/test_paths.py:101: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
pywin32 (https://github.com/mhammond/pywin32)
+ AutoDuck/fixHelpCompression.py:16:1: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ win32/Lib/win32serviceutil.py:140:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:615:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/sgrepmdi.py:629:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:703:20: note: function win32.win32api.GetProfileSection is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/mdi_pychecker.py:717:21: note: function win32.win32api.WriteProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:45:20: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
+ Pythonwin/pywin/framework/editor/vss.py:46:19: note: function win32.win32api.GetProfileVal is deprecated: This function is obsolete, applications should use the registry instead. [deprecated]
pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/commands/__init__.py: note: In function "OnlyWithResolvedHeapSyms":
+ pwndbg/commands/__init__.py:453: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ ddtrace/internal/debug.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:228: note: class ast.Bytes is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:238: note: class ast.Num is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/appsec/_iast/_ast/visitor.py:390: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
+ ddtrace/profiling/exporter/http.py:219: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
+ ddtrace/profiling/exporter/http.py:220: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
alerta (https://github.com/alerta/alerta)
+ alerta/dev.py:4: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/utils/audit.py:94: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/note.py:25: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:31: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/key.py:164: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:59: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/heartbeat.py:61: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/blackout.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/blackout.py:60: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:66: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:75: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:282: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:335: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:379: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:430: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:574: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:609: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/alert.py:637: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/auth/utils.py:52: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/user.py:41: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/models/user.py:44: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:250: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:252: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:254: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:345: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ alerta/database/backends/mongodb/utils.py:347: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/misc.py:279: note: class ast.NameConstant is deprecated: Replaced by ast.Constant; removed in Python 3.14 [deprecated]
openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_current_count" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:103: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/yearly_reading_goals.py: note: In member "update_target" of class "YearlyReadingGoals":
+ openlibrary/core/yearly_reading_goals.py:121: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "assign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:231: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "unassign_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:251: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "update_request_status" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:280: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "comment_request" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:296: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/core/edits.py: note: In member "create_comment" of class "CommunityEditsQueue":
+ openlibrary/core/edits.py:322: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "is_loaned_out":
+ openlibrary/plugins/upstream/borrow.py:609: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "_update_loan_status":
+ openlibrary/plugins/upstream/borrow.py:635: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/borrow.py: note: In function "get_ia_auth_dict":
+ openlibrary/plugins/upstream/borrow.py:826: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ openlibrary/plugins/upstream/addbook.py: note: In function "get_recaptcha":
+ openlibrary/plugins/upstream/addbook.py:50: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
discord.py (https://github.com/Rapptz/discord.py)
+ discord/member.py:946: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ discord/member.py:1002: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ discord/ext/tasks/__init__.py:227: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
comtypes (https://github.com/enthought/comtypes)
+ comtypes/test/__init__.py:140: note: function unittest.loader.makeSuite is deprecated: Deprecated in Python 3.11; removal scheduled for Python 3.13 [deprecated]
+ comtypes/test/__init__.py:210: note: function unittest.loader.makeSuite is deprecated: Deprecated in Python 3.11; removal scheduled for Python 3.13 [deprecated]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/api/api_wrappers.py:56: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/services/user_updater.py:78: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/core_api.py:36: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/core_api.py:37: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ backend/api/global_scoreboard_api.py:76: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
dragonchain (https://github.com/dragonchain/dragonchain)
+ dragonchain/lib/dto/smart_contract_model.py:100:86: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/lib/dto/smart_contract_model.py:300:112: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/lib/authorization.py:51:12: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ dragonchain/scheduler/scheduler.py:65:42: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/data/history/history_utils.py:125: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ freqtrade/rpc/api_server/api_ws.py:42: note: function pydantic.main.BaseModel.dict is deprecated: The `dict` method is deprecated; use `model_dump` instead. [deprecated]
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
+ pytest_robotframework/__init__.py:471: note: @overload should be placed before @deprecated
sockeye (https://github.com/awslabs/sockeye)
+ sockeye/utils.py:843: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ sockeye/model.py:183: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ sockeye/model.py:187: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
paasta (https://github.com/yelp/paasta)
+ paasta_tools/utils.py:1496: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/utils.py:3673: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/utils.py:3680: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/utils.py:3688: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/spark_tools.py:136: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/spark_tools.py:204: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/setup_istio_mesh.py:106: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/smartstack_tools.py:476: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/smartstack_tools.py:533: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:809: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:824: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:829: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:1020: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1024: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
+ paasta_tools/cli/cmds/logs.py:1310: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1317: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ paasta_tools/cli/cmds/logs.py:1329: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
bandersnatch (https://github.com/pypa/bandersnatch)
+ src/bandersnatch/utils.py: note: In function "make_time_stamp":
+ src/bandersnatch/utils.py:54: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
+ src/bandersnatch/mirror.py: note: In member "synchronize" of class "Mirror":
+ src/bandersnatch/mirror.py:58: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
optuna (https://github.com/optuna/optuna)
+ optuna/_gp/gp.py:260: note: function logging.Logger.warn is deprecated: Deprecated; use warning() instead. [deprecated]
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ website_macros.py:101: note: function datetime.datetime.utcnow is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .now(datetime.timezone.utc) [deprecated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/autoreload.py:339: note: function pkgutil.get_loader is deprecated: Use importlib.util.find_spec() instead. Will be removed in Python 3.14. [deprecated]
+ tornado/test/httputil_test.py:444: note: function datetime.datetime.utcfromtimestamp is deprecated: Use timezone-aware objects to represent datetimes in UTC; e.g. by calling .fromtimestamp(datetime.timezone.utc) [deprecated]
... (truncated 25 lines) ...```
Hm, docstring of module astdiff seems to suggest it is a bad idea.
@ilevkivskyi
I am now quite sure that testDeprecatedAddFunctionDeprecationIndirectImport-only_when_nocache fails due to a more general problem (or my misunderstanding of only_when_nocache). Mypy does not report any of the two obvious errors, no matter which of the four decorator definitions I select:
[case testReplaceFunctionWithDecoratedFunction-only_when_nocache]
from b import f
x: int = f()
import b
y: int = b.f()
[file b.py]
from a import f
[file a.py]
def f() -> int: ...
[file a.py.2]
from typing import Callable, TypeVar
T = TypeVar("T")
# def d(t: str, /) -> Callable[[T], T]: ... # version 1
# def d(t: str, /) -> Callable[[Callable[[], str]], Callable[[], str]]: ... # version 2
# def d(t: T, /) -> T: ... # version 3
def d(t: Callable[[], str], /) -> Callable[[], str]: ... # version 4
# @d("deprecated") # version 1 or 2
@d # version 3 or 4
def f() -> str: ...
[builtins fixtures/tuple.pyi]
[out]
==
main:2: error: Incompatible types in assignment (expression has type "str", variable has type "int")
main:4: error: Incompatible types in assignment (expression has type "str", variable has type "int")
I now had time for some debugging but did not come to a helpful conclusion.
The already mentioned docstring seems to suggest that snapshots and fine-grained dependencies have nothing to do with each other. I thought that snapshots would be used to determine the triggers that are used in combination with the fine-grained dependency mappings for determining targets that need reprocessing.
Another confusion comes from the fact that Mypy does not fail the following test cast:
[case testReplaceFunctionWithDecoratedFunction-only_when_nocache]
from b import f
x: int = f()
[file b.py]
from a import f
[file a.py]
def f() -> int: ...
[file a.py.2]
def f() -> str: ...
[builtins fixtures/tuple.pyi]
[out]
==
main:2: error: Incompatible types in assignment (expression has type "str", variable has type "int")
It seems to me that Mypy does not handle this test well because of processing the modules in the right order (a -> b -> main) but because of storing the same FuncDef instance in the symbol tables of the three modules. Hence, if a.f is updated when reanalysing a, b and main know this at once. So, Mypy can detect the error also for the processing order a -> main -> b and then starts another iteration step so that the complete processing order becomes a -> main -> b -> main (it actually finds the same error twice).
Again, all this seems to apply only for only_when_nocache.
I suspect those familiar with Mypy's server functionalities will find it much easier to solve this puzzle (or see, where I am thinking in the wrong direction), so I will wait for help.
I will try to look at this on the weekend, there indeed may be a deeper problem.
@tyralla I think I fixed the bug in https://github.com/python/mypy/pull/17883. Please undo your CrossRef change. Also please add a test like this:
[case testDeprecateFunctionAlreadyDecorated]
from b import f
x: str = f()
import b
y: str = b.f()
[file b.py]
from a import f
[file a.py]
from typing import Callable
def d(t: Callable[[], str]) -> Callable[[], str]: ...
@d
def f() -> str: ...
[file a.py.2]
from typing import Callable
from typing_extensions import deprecated
def d(t: Callable[[], str]) -> Callable[[], str]: ...
@deprecated("deprecated decorated function")
@d
def f() -> str: ...
[builtins fixtures/tuple.pyi]
[out]
==
main:2: note: deprecated decorated function
main:4: note: deprecated decorated function
I am 95% sure this will fail unless you add the flag to Decorator snapshot as I suggested a while ago.
Okay, I'm glad to hear my analysis was correct. Thank you for applying and merging the fix into the master branch so soon. I reverted my fix, merged your one, and added the suggested test case testDeprecateFunctionAlreadyDecorated. However, I would have been a little surprised if it failed with the current implementation because there is already a similar test (testDeprecatedChangeFunctionDeprecationIndirectImport) that passes. Should I, nevertheless, add the attribute deprecated to the snapshot?
Due to all the refactoring and bug searching, I haven't thought about PEP 702 for a while now. I could consider some additional special cases (you mentioned one above) and the override topic soon. Do you intend to include PEP 702 support in Mypy 1.12?