--- a/src/eric7/i18n/eric7_ru.ts Fri Aug 02 19:24:32 2024 +0200 +++ b/src/eric7/i18n/eric7_ru.ts Sat Aug 03 11:01:25 2024 +0200 @@ -55622,505 +55622,510 @@ <translation>ненужное списковое включение, переданное в {0}(), предотвращает короткое замыкание - перезаписать как генератор</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="135" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="134" /> + <source>unnecessary {0} comprehension - rewrite using dict.fromkeys()</source> + <translation type="unfinished" /> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="139" /> <source>sort keys - '{0}' should be before '{1}'</source> <translation>ключи сортировки - '{0}' должны быть прежде чем '{1}'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="140" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="144" /> <source>the number of arguments for property getter method is wrong (should be 1 instead of {0})</source> <translation>неправильное количество аргументов для метода получения свойства (должeн быть 1 вместо {0})</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="145" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="149" /> <source>the number of arguments for property setter method is wrong (should be 2 instead of {0})</source> <translation>неправильное количество аргументов для метода установки свойства (должно быть 2 вместо {0})</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="150" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="154" /> <source>the number of arguments for property deleter method is wrong (should be 1 instead of {0})</source> <translation>количество аргументов для метода удаления свойств неверно (должно быть 1 вместо {0})</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="155" /> - <source>the name of the setter method is wrong (should be '{0}' instead of '{1}')</source> - <translation>неправильное имя метода установки (должно быть '{0}' вместо '{1}')</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="159" /> - <source>the name of the deleter method is wrong (should be '{0}' instead of '{1}')</source> - <translation>неправильное имя метода удаления (должно быть '{0}' вместо '{1}')</translation> + <source>the name of the setter method is wrong (should be '{0}' instead of '{1}')</source> + <translation>неправильное имя метода установки (должно быть '{0}' вместо '{1}')</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="163" /> - <source>the name of the setter decorator is wrong (should be '{0}' instead of '{1}')</source> - <translation>неправильное имя декоратора-установщика (должно быть '{0}' вместо '{1}')</translation> + <source>the name of the deleter method is wrong (should be '{0}' instead of '{1}')</source> + <translation>неправильное имя метода удаления (должно быть '{0}' вместо '{1}')</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="167" /> - <source>the name of the deleter decorator is wrong (should be '{0}' instead of '{1}')</source> - <translation>неправильное имя декоратора удаления (должно быть '{0}' вместо '{1}')</translation> + <source>the name of the setter decorator is wrong (should be '{0}' instead of '{1}')</source> + <translation>неправильное имя декоратора-установщика (должно быть '{0}' вместо '{1}')</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="171" /> + <source>the name of the deleter decorator is wrong (should be '{0}' instead of '{1}')</source> + <translation>неправильное имя декоратора удаления (должно быть '{0}' вместо '{1}')</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="175" /> <source>multiple decorators were used to declare property '{0}'</source> <translation>несколько декораторов использовались для объявления свойства '{0}'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="176" /> - <source>use of 'datetime.datetime()' without 'tzinfo' argument should be avoided</source> - <translation>следует избегать использования 'datetime.datetime()' без аргумента 'tzinfo'</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="180" /> + <source>use of 'datetime.datetime()' without 'tzinfo' argument should be avoided</source> + <translation>следует избегать использования 'datetime.datetime()' без аргумента 'tzinfo'</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="184" /> <source>use of 'datetime.datetime.today()' should be avoided. Use 'datetime.datetime.now(tz=)' instead.</source> <translation>следует избегать использования 'datetime.datetime.today()'. Взамен используйте 'datetime.datetime.now(tz=)'.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="185" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="189" /> <source>use of 'datetime.datetime.utcnow()' should be avoided. Use 'datetime.datetime.now(tz=datetime.timezone.utc)' instead.</source> <translation>следует избегать использования 'datetime.datetime.utcnow()'. Вместо этого используйте 'datetime.datetime.now(tz=datetime.timezone.utc)'.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="190" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="194" /> <source>use of 'datetime.datetime.utcfromtimestamp()' should be avoided. Use 'datetime.datetime.fromtimestamp(..., tz=datetime.timezone.utc)' instead.</source> <translation>следует избегать использования 'datetime.datetime.utcfromtimestamp()'. Вместо этого используйте 'datetime.datetime.fromtimestamp(..., tz=datetime.timezone.utc)'.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="195" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="199" /> <source>use of 'datetime.datetime.now()' without 'tz' argument should be avoided</source> <translation>следует избегать использования 'datetime.datetime.now()' без аргумента 'tz'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="199" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="203" /> <source>use of 'datetime.datetime.fromtimestamp()' without 'tz' argument should be avoided</source> <translation>следует избегать использования 'datetime.datetime.fromtimestamp()' без аргумента 'tz'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="204" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="208" /> <source>use of 'datetime.datetime.strptime()' should be followed by '.replace(tzinfo=)'</source> <translation>применение 'datetime.datetime.strptime()' должно сопровождаться '.replace(tzinfo=)'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="209" /> - <source>use of 'datetime.datetime.fromordinal()' should be avoided</source> - <translation>следует избегать использования 'datetime.datetime.fromordinal()'</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="213" /> + <source>use of 'datetime.datetime.fromordinal()' should be avoided</source> + <translation>следует избегать использования 'datetime.datetime.fromordinal()'</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="217" /> <source>use of 'datetime.date()' should be avoided. Use 'datetime.datetime(, tzinfo=).date()' instead.</source> <translation>следует избегать использования 'datetime.date()'. Взамен используйте 'datetime.datetime(, tzinfo=).date()'.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="218" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="222" /> <source>use of 'datetime.date.today()' should be avoided. Use 'datetime.datetime.now(tz=).date()' instead.</source> <translation>следует избегать использования 'datetime.date.today()'. Взамен используйте 'datetime.datetime.now(tz=).date()'.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="223" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="227" /> <source>use of 'datetime.date.fromtimestamp()' should be avoided. Use 'datetime.datetime.fromtimestamp(tz=).date()' instead.</source> <translation>следует избегать использования 'datetime.date.fromtimestamp()'. Взамен используйте 'datetime.datetime.fromtimestamp(tz=).date()'.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="228" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="232" /> <source>use of 'datetime.date.fromordinal()' should be avoided</source> <translation>следует избегать использования 'datetime.date.fromordinal()'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="232" /> - <source>use of 'datetime.date.fromisoformat()' should be avoided</source> - <translation>следует избегать использования 'datetime.date.fromordinal()'</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="236" /> + <source>use of 'datetime.date.fromisoformat()' should be avoided</source> + <translation>следует избегать использования 'datetime.date.fromordinal()'</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="240" /> <source>use of 'datetime.time()' without 'tzinfo' argument should be avoided</source> <translation>следует избегать использования 'datetime.time()' без аргумента 'tzinfo'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="241" /> - <source>'sys.version[:3]' referenced (Python 3.10), use 'sys.version_info'</source> - <translation>'sys.version[:3]' referenced (Python 3.10), используйте 'sys.version_info'</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="245" /> - <source>'sys.version[2]' referenced (Python 3.10), use 'sys.version_info'</source> - <translation>'sys.version[2]' referenced (Python 3.10), используйте 'sys.version_info'</translation> + <source>'sys.version[:3]' referenced (Python 3.10), use 'sys.version_info'</source> + <translation>'sys.version[:3]' referenced (Python 3.10), используйте 'sys.version_info'</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="249" /> - <source>'sys.version' compared to string (Python 3.10), use 'sys.version_info'</source> - <translation>'sys.version' compared to string (Python 3.10), используйте 'sys.version_info'</translation> + <source>'sys.version[2]' referenced (Python 3.10), use 'sys.version_info'</source> + <translation>'sys.version[2]' referenced (Python 3.10), используйте 'sys.version_info'</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="253" /> - <source>'sys.version_info[0] == 3' referenced (Python 4), use '>='</source> - <translation>'sys.version_info[0] == 3' referenced (Python 4), используйте '>='</translation> + <source>'sys.version' compared to string (Python 3.10), use 'sys.version_info'</source> + <translation>'sys.version' compared to string (Python 3.10), используйте 'sys.version_info'</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="257" /> - <source>'six.PY3' referenced (Python 4), use 'not six.PY2'</source> - <translation>'six.PY3' referenced (Python 4), используйте 'not six.PY2'</translation> + <source>'sys.version_info[0] == 3' referenced (Python 4), use '>='</source> + <translation>'sys.version_info[0] == 3' referenced (Python 4), используйте '>='</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="261" /> + <source>'six.PY3' referenced (Python 4), use 'not six.PY2'</source> + <translation>'six.PY3' referenced (Python 4), используйте 'not six.PY2'</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="265" /> <source>'sys.version_info[1]' compared to integer (Python 4), compare 'sys.version_info' to tuple</source> <translation>'sys.version_info[1]' compared to integer (Python 4), compare 'sys.version_info' to tuple</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="266" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="270" /> <source>'sys.version_info.minor' compared to integer (Python 4), compare 'sys.version_info' to tuple</source> <translation>'sys.version_info.minor' compared to integer (Python 4), compare 'sys.version_info' to tuple</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="271" /> - <source>'sys.version[0]' referenced (Python 10), use 'sys.version_info'</source> - <translation>'sys.version[0]' referenced (Python 10), используйте 'sys.version_info'</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="275" /> - <source>'sys.version' compared to string (Python 10), use 'sys.version_info'</source> - <translation>'sys.version' compared to string (Python 10), используйте 'sys.version_info'</translation> + <source>'sys.version[0]' referenced (Python 10), use 'sys.version_info'</source> + <translation>'sys.version[0]' referenced (Python 10), используйте 'sys.version_info'</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="279" /> + <source>'sys.version' compared to string (Python 10), use 'sys.version_info'</source> + <translation>'sys.version' compared to string (Python 10), используйте 'sys.version_info'</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="283" /> <source>'sys.version[:1]' referenced (Python 10), use 'sys.version_info'</source> <translation>'sys.version[:1]' referenced (Python 10), используйте 'sys.version_info'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="284" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="288" /> <source>Do not use bare 'except:', it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer excepting specific exceptions. If you're sure what you're doing, be explicit and write 'except BaseException:'.</source> <translation>Не используйте только 'except:', он также перехватывает неожиданные события, такие как ошибки памяти, прерывания, выход из системы и т. д. Предпочтительно использовать 'except Exception:'. Если вы уверены в том, что делаете, напишите 'except BaseException:'.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="291" /> - <source>Python does not support the unary prefix increment</source> - <translation>Python не поддерживает инкремент унарного префикса</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="295" /> + <source>Python does not support the unary prefix increment</source> + <translation>Python не поддерживает инкремент унарного префикса</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="299" /> <source>assigning to 'os.environ' does not clear the environment - use 'os.environ.clear()'</source> <translation>назначение 'os.environ' не очищает среду окружения - используйте 'os.environ.clear()'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="300" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="304" /> <source>using 'hasattr(x, "__call__")' to test if 'x' is callable is unreliable. Use 'callable(x)' for consistent results.</source> <translation>использование 'hasattr(x, "__call__")' для проверки возможности вызова 'x' ненадежно. Используйте 'callable(x)' для получения стабильных результатов.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="305" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="309" /> <source>using .strip() with multi-character strings is misleading. Use .replace(), .removeprefix(), .removesuffix(), or regular expressions to remove string fragments.</source> <translation>использование .strip() с многосимвольными строками приводит к обманчивым результатам. Используйте .replace(), .removeprefix(), .removesuffix() или регулярные выражения для удаления фрагментов строки.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="311" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="315" /> <source>loop control variable {0} not used within the loop body - start the name with an underscore</source> <translation>переменная {0} управления циклом не используется внутри цикла - начните имя символом подчеркивания</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="316" /> - <source>do not call getattr with a constant attribute value</source> - <translation>не используйте вызовы getattr с постоянным значением атрибута</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="320" /> - <source>do not call setattr with a constant attribute value</source> - <translation>не используйте вызовы setattr с постоянным значением атрибута</translation> + <source>do not call getattr with a constant attribute value</source> + <translation>не используйте вызовы getattr с постоянным значением атрибута</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="324" /> - <source>do not call assert False since python -O removes these calls</source> - <translation>не используйте вызовы assert False, так как python -O удаляет эти вызовы</translation> + <source>do not call setattr with a constant attribute value</source> + <translation>не используйте вызовы setattr с постоянным значением атрибута</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="328" /> + <source>do not call assert False since python -O removes these calls</source> + <translation>не используйте вызовы assert False, так как python -O удаляет эти вызовы</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="332" /> <source>return/continue/break inside finally blocks cause exceptions to be silenced. Exceptions should be silenced in except blocks. Control statements can be moved outside the finally block.</source> <translation>return/continue/break внутри блоков finally заставляют исключения отключаться. Исключения должны быть отключены в блоках except. Управляющие операторы могут быть перемещены за пределы блока finally.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="334" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="338" /> <source>A length-one tuple literal is redundant. Write 'except {0}:' instead of 'except ({0},):'.</source> <translation>Литерал односимвольного кортежа является избыточным. Используйте 'except {0}:' вместо 'except ({0},):'.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="339" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="343" /> <source>Redundant exception types in 'except ({0}){1}:'. Write 'except {2}{1}:', which catches exactly the same exceptions.</source> <translation>Избыточные типы исключений в 'except ({0}){1}:'. Используйте 'except {2}{1}:', чтобы перехватывать точно такие же исключения.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="344" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="348" /> <source>Result of comparison is not used. This line doesn't do anything. Did you intend to prepend it with assert?</source> <translation>Результат сравнения не используется. Эта строка ничего не делает. Вы намеревались добавить к нему assert?</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="349" /> - <source>Cannot raise a literal. Did you intend to return it or raise an Exception?</source> - <translation>Невозможно вызвать литерал. Вы намеревались вернуть его или вызвать Exception?</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="353" /> + <source>Cannot raise a literal. Did you intend to return it or raise an Exception?</source> + <translation>Невозможно вызвать литерал. Вы намеревались вернуть его или вызвать Exception?</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="357" /> <source>'assertRaises(Exception)' and 'pytest.raises(Exception)' should be considered evil. They can lead to your test passing even if the code being tested is never executed due to a typo. Assert for a more specific exception (builtin or custom), or use 'assertRaisesRegex' (if using 'assertRaises'), or add the 'match' keyword argument (if using 'pytest.raises'), or use the context manager form with a target.</source> <translation>'assertRaises(Exception):' следует считать злом. Это может привести к прохождению теста, даже если тестируемый код никогда не выполняется из-за опечатки. Либо подтвердите для более конкретного исключения (встроенного или пользовательского), используйте 'assertRaisesRegex', либо используйте форму 'assertRaises' диспетчера контекста.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="362" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="366" /> <source>Found useless {0} expression. Consider either assigning it to a variable or removing it.</source> <translation>Найдено бесполезное выражение. Рассмотрите возможность назначения его переменной или удалить.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="367" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="371" /> <source>Use of 'functools.lru_cache' or 'functools.cache' on methods can lead to memory leaks. The cache may retain instance references, preventing garbage collection.</source> <translation>Использование 'functools.lru_cache' или 'functools.cache' в методах может привести к утечке памяти. Кэш может сохранять ссылки на экземпляры, предотвращая сборку мусора.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="373" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="377" /> <source>Found for loop that reassigns the iterable it is iterating with each iterable value.</source> <translation>Найден цикл for, который переназначает итерируемый объект, который повторяется с каждым итерируемым значением.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="378" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="382" /> <source>f-string used as docstring. This will be interpreted by python as a joined string rather than a docstring.</source> <translation>f-string используется в качестве строки документации. Python будет интерпретировать это скорее как объединенную строку, а не как строку документации.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="383" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="387" /> <source>No arguments passed to 'contextlib.suppress'. No exceptions will be suppressed and therefore this context manager is redundant.</source> <translation>В 'contextlib.suppress' не переданы аргументы. Никакие исключения не будут подавляться, поэтому этот менеджер контекста является избыточным.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="388" /> - <source>Function definition does not bind loop variable '{0}'.</source> - <translation>Определение функции не связывает переменную цикла '{0}'.</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="392" /> + <source>Function definition does not bind loop variable '{0}'.</source> + <translation>Определение функции не связывает переменную цикла '{0}'.</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="396" /> <source>{0} is an abstract base class, but none of the methods it defines are abstract. This is not necessarily an error, but you might have forgotten to add the @abstractmethod decorator, potentially in conjunction with @classmethod, @property and/or @staticmethod.</source> <translation>{0} — это абстрактный базовый класс, но он не имеет абстрактных методов. Не забудьте использовать декоратор @abstractmethod, возможно, в сочетании с @classmethod, @property и/или @staticmethod.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="399" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="403" /> <source>Exception '{0}' has been caught multiple times. Only the first except will be considered and all other except catches can be safely removed.</source> <translation>Исключение '{0}' было перехвачено несколько раз. Будет рассмотрено только первое исключение, а все остальные исключения могут быть безопасно удалены.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="404" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="408" /> <source>Star-arg unpacking after a keyword argument is strongly discouraged, because it only works when the keyword parameter is declared after all parameters supplied by the unpacked sequence, and this change of ordering can surprise and mislead readers.</source> <translation>Настоятельно не рекомендуется распаковывать star-arg после аргумента ключевого слова, потому что он работает только тогда, когда параметр ключевого слова объявляется после всех параметров, предоставленных распакованной последовательностью, и такое изменение порядка может удивить и ввести в заблуждение читателей.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="411" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="415" /> <source>{0} is an empty method in an abstract base class, but has no abstract decorator. Consider adding @abstractmethod.</source> <translation>{0} — это пустой метод в абстрактном базовом классе, но без абстрактного декоратора. Рассмотрите возможность добавления @abstractmethod.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="416" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="420" /> <source>No explicit stacklevel argument found. The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user.</source> <translation>Явный аргумент уровня стека не найден. Метод warn из модуля warnings по умолчанию использует уровень стека 1. Это покажет только трассировку стека для строки, для которой вызывается метод warn. Поэтому рекомендуется использовать уровень стека 2 или выше, чтобы предоставить пользователю больше информации.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="424" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="428" /> <source>Using 'except ():' with an empty tuple does not handle/catch anything. Add exceptions to handle.</source> <translation>Использование 'except ():' с пустым кортежем ничего не обрабатывает/не перехватывает. Добавьте исключения для обработки.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="429" /> - <source>Except handlers should only be names of exception classes</source> - <translation>Обработчики исключений должны быть только именами классов исключений</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="433" /> + <source>Except handlers should only be names of exception classes</source> + <translation>Обработчики исключений должны быть только именами классов исключений</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="437" /> <source>Using the generator returned from 'itertools.groupby()' more than once will do nothing on the second usage. Save the result to a list, if the result is needed multiple times.</source> <translation>Использование генератора, возвращенного из 'itertools.groupby()' более одного раза, ничего не даст при повторном использовании. Сохраните результат в список, если результат требуется несколько раз.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="439" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="443" /> <source>Possible unintentional type annotation (using ':'). Did you mean to assign (using '=')?</source> <translation>Возможно непреднамеренная аннотация типа (using ':'). Вы имели в виду assign (using '=')?</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="444" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="448" /> <source>Set should not contain duplicate item '{0}'. Duplicate items will be replaced with a single item at runtime.</source> <translation>Набор не должен содержать повторяющихся элементов '{0}'. Повторяющиеся элементы будут заменены одним элементом во время выполнения.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="449" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="453" /> <source>re.{0} should get '{1}' and 'flags' passed as keyword arguments to avoid confusion due to unintuitive argument positions.</source> <translation>re.{0} должен получать '{1}' и 'flags', передаваемые в качестве аргументов ключевых слов, чтобы избежать путаницы из-за неинтуитивных позиций аргументов.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="454" /> - <source>Static key in dict comprehension: {0!r}.</source> - <translation>Статический ключ во включении словарей: {0!r}.</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="458" /> - <source>Don't except 'BaseException' unless you plan to re-raise it.</source> - <translation>Не исключайте 'BaseException', если только вы не планируете повторно вызвать его.</translation> + <source>Static key in dict comprehension: {0!r}.</source> + <translation>Статический ключ во включении словарей: {0!r}.</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="462" /> + <source>Don't except 'BaseException' unless you plan to re-raise it.</source> + <translation>Не исключайте 'BaseException', если только вы не планируете повторно вызвать его.</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="466" /> <source>Class '__init__' methods must not return or yield and any values.</source> <translation>Методы класса '__init__' не должны возвращать или выдавать какие-либо значения.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="467" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="471" /> <source>Editing a loop's mutable iterable often leads to unexpected results/bugs.</source> <translation>Редактирование изменяемого итерационного параметра цикла часто приводит к неожиданным результатам/ошибкам.</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="472" /> - <source>unncessary f-string</source> - <translation>ненужная f-string</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="476" /> + <source>unncessary f-string</source> + <translation>ненужная f-string</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="480" /> <source>cannot use 'self.__class__' as first argument of 'super()' call</source> <translation>не используйте 'self .__ class__' в качестве первого аргумента вызова 'super ()'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="481" /> - <source>found {0} formatter</source> - <translation>найден {0} форматтер</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="485" /> - <source>format string does contain unindexed parameters</source> - <translation>строка формата действительно содержит неиндексированные параметры</translation> + <source>found {0} formatter</source> + <translation>найден {0} форматтер</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="489" /> - <source>docstring does contain unindexed parameters</source> - <translation>строка документации действительно содержит неиндексированные параметры</translation> + <source>format string does contain unindexed parameters</source> + <translation>строка формата действительно содержит неиндексированные параметры</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="493" /> - <source>other string does contain unindexed parameters</source> - <translation>другая строка действительно содержит неиндексированные параметры</translation> + <source>docstring does contain unindexed parameters</source> + <translation>строка документации действительно содержит неиндексированные параметры</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="497" /> - <source>format call uses too large index ({0})</source> - <translation>формат вызова использует слишком большой индекс ({0})</translation> + <source>other string does contain unindexed parameters</source> + <translation>другая строка действительно содержит неиндексированные параметры</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="501" /> - <source>format call uses missing keyword ({0})</source> - <translation>формат вызова использует отсутствующее ключевое слово ({0})</translation> + <source>format call uses too large index ({0})</source> + <translation>формат вызова использует слишком большой индекс ({0})</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="505" /> - <source>format call uses keyword arguments but no named entries</source> - <translation>формат вызова использует ключевые аргументы, но нет именованных записей</translation> + <source>format call uses missing keyword ({0})</source> + <translation>формат вызова использует отсутствующее ключевое слово ({0})</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="509" /> - <source>format call uses variable arguments but no numbered entries</source> - <translation>формат ячейки использует переменные аргументы, но нет пронумерованных записей</translation> + <source>format call uses keyword arguments but no named entries</source> + <translation>формат вызова использует ключевые аргументы, но нет именованных записей</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="513" /> - <source>format call uses implicit and explicit indexes together</source> - <translation>формат вызова использует скрытые и явные индексы вместе</translation> + <source>format call uses variable arguments but no numbered entries</source> + <translation>формат ячейки использует переменные аргументы, но нет пронумерованных записей</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="517" /> - <source>format call provides unused index ({0})</source> - <translation>формат вызова предоставляет неиспользованный индекс ({0})</translation> + <source>format call uses implicit and explicit indexes together</source> + <translation>формат вызова использует скрытые и явные индексы вместе</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="521" /> + <source>format call provides unused index ({0})</source> + <translation>формат вызова предоставляет неиспользованный индекс ({0})</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="525" /> <source>format call provides unused keyword ({0})</source> <translation>формат вызова предоставляет неиспользуемое ключевое слово ({0})</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="526" /> - <source>expected these __future__ imports: {0}; but only got: {1}</source> - <translation>ожидался __future__ imports: {0}; получены только: {1}</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="530" /> + <source>expected these __future__ imports: {0}; but only got: {1}</source> + <translation>ожидался __future__ imports: {0}; получены только: {1}</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="534" /> <source>expected these __future__ imports: {0}; but got none</source> <translation>ожидался __future__ imports: {0}; не получено ничего</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="535" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="539" /> <source>gettext import with alias _ found: {0}</source> <translation>gettext import with alias _ found: {0}</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="540" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="544" /> <source>print statement found</source> <translation>обнаружена инструкция печати</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="545" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="549" /> <source>one element tuple found</source> <translation>найден одноэлементный кортеж</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="554" /> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="550" /> - <source>mutable default argument of type {0}</source> - <translation>изменяемый аргумент по умолчанию типа {0}</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="558" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="554" /> + <source>mutable default argument of type {0}</source> + <translation>изменяемый аргумент по умолчанию типа {0}</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="562" /> <source>mutable default argument of function call '{0}'</source> <translation>измененный аргумент по умолчанию для вызова функции '{0}'</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="563" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="567" /> <source>None should not be added at any return if function has no return value except None</source> <translation>если функция не имеет возвращаемого значения, (кроме None), None не следует добавлять в каждый return</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="568" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="572" /> <source>an explicit value at every return should be added if function has a return value except None</source> <translation>если функция имеет возвращаемое значение, (кроме None), то явное значение должно быть добавлено каждому return</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="573" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="577" /> <source>an explicit return at the end of the function should be added if it has a return value except None</source> <translation>в конец функции, если она имеет возвращаемое значение, (кроме None), должен быть добавлен явный return</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="578" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="582" /> <source>a value should not be assigned to a variable if it will be used as a return value only</source> <translation>значение не должно присваиваться переменной, если оно будет использоваться только как возвращаемое значение</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="584" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="588" /> <source>prefer implied line continuation inside parentheses, brackets and braces as opposed to a backslash</source> <translation>для предполагаемого продолжения строки предпочтительнее использование круглых, квадратных или фигурных скобок, а не обратного слеша</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="590" /> - <source>implicitly concatenated string or bytes literals on one line</source> - <translation>неявно объединенные строковые или байтовые литералы в одной строке</translation> - </message> - <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="594" /> - <source>implicitly concatenated string or bytes literals over continuation line</source> - <translation>неявно объединенные строковые или байтовые литералы в строке продолжения</translation> + <source>implicitly concatenated string or bytes literals on one line</source> + <translation>неявно объединенные строковые или байтовые литералы в одной строке</translation> </message> <message> <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="598" /> + <source>implicitly concatenated string or bytes literals over continuation line</source> + <translation>неявно объединенные строковые или байтовые литералы в строке продолжения</translation> + </message> + <message> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="602" /> <source>explicitly concatenated string or bytes should be implicitly concatenated</source> <translation>явно объединенные строковые или байтовые литералы должны быть неявно объединены</translation> </message> <message> - <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="603" /> + <location filename="../Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py" line="607" /> <source>commented code lines should be removed</source> <translation>закомментированные строки кода должны быть удалены</translation> </message>