mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
80 lines
2.6 KiB
Python
80 lines
2.6 KiB
Python
# coding=utf-8
|
||
"""Module description <TYPO descr="Typo: In word 'eror'">eror</TYPO>"""
|
||
|
||
|
||
class ExampleClassWithNoTypos:
|
||
"""A group of *members*.
|
||
|
||
This class has no useful logic; it's just a documentation example.
|
||
|
||
Args:
|
||
name (str): the name of this group. And another sentence.
|
||
|
||
Attributes:
|
||
name (str): the name of this group. <warning descr="UPPERCASE_SENTENCE_START">and</warning> another sentence.
|
||
|
||
"""
|
||
|
||
def __init__(self, name):
|
||
self.name = name
|
||
|
||
def good_function(self, member):
|
||
"""
|
||
Adds a [member] to this group.
|
||
|
||
Args:
|
||
member (str): member to add to the group.
|
||
|
||
Returns:
|
||
int: the new size of the group.
|
||
|
||
"""
|
||
return 1 # no error comment
|
||
|
||
|
||
class ExampleClassWithTypos:
|
||
"""It <warning descr="IT_VBZ">are</warning> friend there
|
||
|
||
Args:
|
||
name (str): the <warning descr="COMMA_WHICH">name which</warning> group and some other English text
|
||
|
||
Attributes:
|
||
name (str): the <warning descr="COMMA_WHICH">name which</warning> group and some other English text
|
||
|
||
"""
|
||
|
||
def __init__(self, name):
|
||
self.name = name
|
||
|
||
def bad_function(self, member):
|
||
"""
|
||
It <warning descr="IT_VBZ">add</warning> a [member] to this <TYPO descr="Typo: In word 'grooup'">grooup</TYPO>.
|
||
|
||
Args:
|
||
member (str): member to add to the group.
|
||
|
||
Returns:
|
||
int: the new size of <warning descr="DT_DT">a the</warning> group.
|
||
|
||
"""
|
||
return 1 # It <warning descr="IT_VBZ">are</warning> <TYPO descr="Typo: In word 'eror'">eror</TYPO> comment
|
||
|
||
|
||
class ForMultiLanguageSupport:
|
||
"""
|
||
В коробке лежало <warning descr="Sklonenije_NUM_NN">пять карандаша</warning>.
|
||
А <warning descr="grammar_vse_li_noun">все ли ошибка</warning> найдены?
|
||
Это случилось <warning descr="INVALID_DATE">31 ноября</warning> 2014 г.
|
||
За весь вечер она <warning descr="ne_proronila_ni">не проронила и слово</warning>.
|
||
Собрание состоится в <warning descr="RU_COMPOUNDS">конференц зале</warning>.
|
||
<warning descr="WORD_REPEAT_RULE">Он он</warning> ошибка.
|
||
"""
|
||
|
||
def __init__(self):
|
||
"""
|
||
Er überprüfte die Rechnungen noch <TYPO descr="Typo: In word 'einal'">einal</TYPO>, um ganz <warning descr="COMPOUND_INFINITIV_RULE">sicher zu gehen</warning>.
|
||
Das ist <warning descr="FUEHR_FUER">führ</warning> Dich!
|
||
Das <TYPO descr="Typo: In word 'daert'">daert</TYPO> geschätzt fünf <warning descr="MANNSTUNDE">Mannstunden</warning>.
|
||
"""
|
||
pass
|