src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Async/translations.py

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 11150
73d80859079c
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

# -*- coding: utf-8 -*-

# Copyright (c) 2023 - 2025 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing message translations for the code style plugin messages
(async part).
"""

from PyQt6.QtCore import QCoreApplication

_asyncMessages = {
    "ASY-100": QCoreApplication.translate(
        "AsyncChecker", "sync HTTP call in async function, use httpx.AsyncClient"
    ),
    "ASY-101": QCoreApplication.translate(
        "AsyncChecker", "blocking sync call in async function, use framework equivalent"
    ),
    "ASY-102": QCoreApplication.translate(
        "AsyncChecker", "sync process call in async function, use framework equivalent"
    ),
    "ASY-103": QCoreApplication.translate(
        "AsyncChecker",
        "blocking sync context manager in async function,"
        " use 'async with' statement",
    ),
    "ASY-104": QCoreApplication.translate(
        "AsyncChecker",
        "avoid using os.path, prefer using 'trio.Path' or 'anyio.Path' objects",
    ),
    "ASY-105": QCoreApplication.translate(
        "AsyncChecker",
        "use of potentially dangerous class in async function, use"
        " httpx.AsyncClient",
    ),
}

_asyncMessageSampleArgs = {}

eric ide

mercurial