src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Unused/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 11148
15e30f0c76a8
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 (unused part).
"""

from PyQt6.QtCore import QCoreApplication

_unusedMessages = {
    ## Unused Arguments
    "U-100": QCoreApplication.translate("UnusedChecker", "Unused argument '{0}'"),
    "U-101": QCoreApplication.translate("UnusedChecker", "Unused argument '{0}'"),
    ## Unused Globals
    "U-200": QCoreApplication.translate(
        "UnusedChecker", "Unused global variable '{0}'"
    ),
}

_unusedMessagesSampleArgs = {
    ## Unused Arguments
    "U-100": ["foo_arg"],
    "U-101": ["_bar_arg"],
    ## Unused Globals
    "U-200": ["FOO"],
}

eric ide

mercurial