File tree Expand file tree Collapse file tree
ar_AR/contributing/process
cs_CZ/contributing/process
da_DK/contributing/process
de_DE/contributing/process
fa_IR/contributing/process
fr_FR/contributing/process
it_IT/contributing/process
ko_KR/contributing/process
pl_PL/contributing/process
pt_BR/contributing/process
tr_TR/contributing/process
zh_CN/contributing/process
zh_TW/contributing/process Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ <h2>نمط الرمز</h2>
282282< li > < p > استخدم InitialCaps لأسماء الفئات (أو لدوال المصنع التي تُعيد
283283فئات)</ p >
284284</ li >
285- < li > < p > استخدم سلاسل المستندات على غرار سفنكس و '257'؛ شرح النوع مع '484' اختياري ولكن يُشجَّع عليه
286- اختياري ولكن يُشجَّع عليه.</ p >
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
287+ optional but encouraged.</ p >
287288< p > على سبيل المثال:</ p >
288289< pre > < code > def function_name(param1: int، param2: str) -> bool:
289290 """"مثال على دالة ذات أنواع وسلسلة مستندات.
@@ -307,9 +308,9 @@ <h2>نمط الرمز</h2>
307308 """"تبدو سلسلة مستندات الاختبار هكذا (#123456).""""
308309</ code > </ pre >
309310</ li >
310- < li > < p > ما لم ينص على خلاف ذلك، اتبع '8' (مع إيلاء اهتمام خاص لـ
311- [القسم
312- 2] ( < a href =" https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds " > https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds </ a > ) ).</ p >
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8 </ a >
312+ (with careful attention paid to < a href =" https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds " > Section
313+ 2</ a > ).</ p >
313314</ li >
314315</ ul >
315316
Original file line number Diff line number Diff line change @@ -282,7 +282,8 @@ <h2>Code style</h2>
282282< li > < p > Use InitialCaps for class names (or for factory functions that return
283283classes)</ p >
284284</ li >
285- < li > < p > Use Sphinx-style docstrings and < code > 257</ code > ; type annotation with < code > 484</ code > is
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
286287optional but encouraged.</ p >
287288< p > For example:</ p >
288289< pre > < code > def function_name(param1: int, param2: str) -> bool:
@@ -307,8 +308,8 @@ <h2>Code style</h2>
307308 """A test docstring looks like this (#123456)."""
308309</ code > </ pre >
309310</ li >
310- < li > < p > Unless otherwise specified, follow < code > 8</ code > (with careful attention paid to
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
3123132</ a > ).</ p >
313314</ li >
314315</ ul >
Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ <h2>Styl kódu</h2>
282282< li > < p > Použijte InitialCaps pro názvy tříd (nebo pro tovární funkce, které vracejí
283283třídy)</ p >
284284</ li >
285- < li > < p > Použití dokumentových řetězců ve stylu Sphinx a < code > 257</ code > ; anotace typu s < code > 484</ code > je
286- nepovinná, ale doporučená.</ p >
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
287+ optional but encouraged.</ p >
287288< p > Například:</ p >
288289< pre > < code > def function_name(param1: int, param2: str) -> bool:
289290 """Příklad funkce s typy a docstringem.
@@ -307,8 +308,8 @@ <h2>Styl kódu</h2>
307308 """Testovací řetězec vypadá takto (#123456)."""
308309</ code > </ pre >
309310</ li >
310- < li > < p > Není-li uvedeno jinak, postupujte podle < code > 8</ code > (s důrazem na
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> oddíl
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
3123132</ a > ).</ p >
313314</ li >
314315</ ul >
Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ <h2>Kodestil</h2>
282282< li > < p > Brug InitialCaps til klassenavne (eller til fabriksfunktioner, der returnerer
283283klasser)</ p >
284284</ li >
285- < li > < p > Brug docstrings i Sphinx-stil og < code > 257</ code > ; typeannotation med < code > 484</ code > er
286- valgfri, men anbefales.</ p >
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
287+ optional but encouraged.</ p >
287288< p > For eksempel:</ p >
288289< pre > < code > def function_name(param1: int, param2: str) -> bool:
289290 """Eksempel på funktion med typer og en docstring.
@@ -307,8 +308,8 @@ <h2>Kodestil</h2>
307308 """En test-dokumentstreng ser sådan ud (#123456)."""
308309</ code > </ pre >
309310</ li >
310- < li > < p > Medmindre andet er angivet, skal du følge < code > 8</ code > (med omhyggelig opmærksomhed på
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Afsnit
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
3123132</ a > ).</ p >
313314</ li >
314315</ ul >
Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ <h2>Code style</h2>
282282< li > < p > Verwenden Sie InitialCaps für Klassennamen (oder für Fabrikfunktionen, die
283283Klassen)</ p >
284284</ li >
285- < li > < p > Verwenden Sie Dokumentationsstrings im Sphinx-Stil und < code > 257</ code > ; Typ-Anmerkungen mit < code > 484</ code > sind
286- optional, aber empfohlen.</ p >
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
287+ optional but encouraged.</ p >
287288< p > Zum Beispiel:</ p >
288289< pre > < code > def function_name(param1: int, param2: str) -> bool:
289290 """Beispielfunktion mit Typen und einem Docstring.
@@ -307,8 +308,8 @@ <h2>Code style</h2>
307308 """Ein Test-Docstring sieht so aus (#123456)."""
308309</ code > </ pre >
309310</ li >
310- < li > < p > Sofern nicht anders angegeben, folgen Sie < code > 8</ code > (unter sorgfältiger Beachtung von
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Abschnitt
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
3123132</ a > ).</ p >
313314</ li >
314315</ ul >
Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ <h2>Código de estilo</h2>
282282< li > < p > Utilice InitialCaps para los nombres de clases (o para las funciones de fábrica que devuelven
283283clases)</ p >
284284</ li >
285- < li > < p > Use docstrings estilo Sphinx y < code > 257</ code > ; la anotación de tipo con < code > 484</ code > es
286- opcional pero recomendable.</ p >
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
287+ optional but encouraged.</ p >
287288< p > Por ejemplo:</ p >
288289< pre > < code > def nombre_funcion(param1: int, param2: str) -> bool:
289290 """Función de ejemplo con tipos y un docstring.
@@ -307,8 +308,8 @@ <h2>Código de estilo</h2>
307308 """Un docstring de prueba tiene este aspecto (#123456)."""
308309</ code > </ pre >
309310</ li >
310- < li > < p > A menos que se especifique lo contrario, siga < code > 8</ code > (prestando especial atención a
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Sección
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
3123132</ a > ).</ p >
313314</ li >
314315</ ul >
Original file line number Diff line number Diff line change @@ -282,7 +282,8 @@ <h2>Code style</h2>
282282< li > < p > Use InitialCaps for class names (or for factory functions that return
283283classes)</ p >
284284</ li >
285- < li > < p > Use Sphinx-style docstrings and < code > 257</ code > ; type annotation with < code > 484</ code > is
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
286287optional but encouraged.</ p >
287288< p > For example:</ p >
288289< pre > < code > def function_name(param1: int, param2: str) -> bool:
@@ -307,8 +308,8 @@ <h2>Code style</h2>
307308 """A test docstring looks like this (#123456)."""
308309</ code > </ pre >
309310</ li >
310- < li > < p > Unless otherwise specified, follow < code > 8</ code > (with careful attention paid to
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
3123132</ a > ).</ p >
313314</ li >
314315</ ul >
Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ <h2>Code style</h2>
282282< li > < p > Utilisez InitialCaps pour les noms de classes (ou pour les fonctions d'usine qui renvoient des
283283classes)</ p >
284284</ li >
285- < li > < p > Utiliser des docstrings de style Sphinx et < code > 257</ code > ; l'annotation de type avec < code > 484</ code > est optionnelle mais encouragée.
286- facultative mais encouragée.</ p >
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
287+ optional but encouraged.</ p >
287288< p > Par exemple :</ p >
288289< pre > < code > def nom_de_la_fonction(param1 : int, param2 : str) -> bool :
289290 """Exemple de fonction avec des types et une docstring.
@@ -307,8 +308,8 @@ <h2>Code style</h2>
307308 """Une docstring de test ressemble à ceci (#123456)."""
308309</ code > </ pre >
309310</ li >
310- < li > < p > Sauf indication contraire, suivez les instructions < code > 8</ code > (en accordant une attention particulière aux instructions suivantes
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
3123132</ a > ).</ p >
313314</ li >
314315</ ul >
Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ <h2>Codice stile</h2>
282282< li > < p > Usare InitialCaps per i nomi delle classi (o per le funzioni di fabbrica che restituiscono
283283classi)</ p >
284284</ li >
285- < li > < p > Usare docstring in stile Sphinx e < code > 257</ code > ; l'annotazione del tipo con < code > 484</ code > è opzionale ma incoraggiata.
286- opzionale ma incoraggiata.</ p >
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
287+ optional but encouraged.</ p >
287288< p > Ad esempio:</ p >
288289< pre > < code > def nome_funzione(param1: int, param2: str) -> bool:
289290 """Esempio di funzione con tipi e una docstring.
@@ -307,8 +308,8 @@ <h2>Codice stile</h2>
307308 """Una docstring di test assomiglia a questa (#123456)""".
308309</ code > </ pre >
309310</ li >
310- < li > < p > Se non diversamente specificato, seguire < code > 8</ code > (con attenzione a
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Sezione
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
3123132</ a > ).</ p >
313314</ li >
314315</ ul >
Original file line number Diff line number Diff line change @@ -282,8 +282,9 @@ <h2>코드 스타일</h2>
282282< li > < p > 클래스 이름(또는 클래스를 반환하는 팩토리 함수의 경우
283283클래스를 반환하는 팩토리 함수)</ p >
284284</ li >
285- < li > < p > 스핑크스 스타일 독스트링과 < code > 257</ code > 사용, < code > 484</ code > 를 사용한 유형 주석은
286- 선택 사항이지만 권장됩니다.</ p >
285+ < li > < p > Use Sphinx-style docstrings and < a href ="https://peps.python.org/pep-0257/ "> PEP 257</ a > ;
286+ type annotation with < a href ="https://peps.python.org/pep-0484/ "> PEP 484</ a > is
287+ optional but encouraged.</ p >
287288< p > 예를 들어</ p >
288289< pre > < code > def function_name(param1: int, param2: str) -> bool:
289290 """타입과 독스트링이 있는 함수 예제입니다.
@@ -307,9 +308,9 @@ <h2>코드 스타일</h2>
307308 """테스트 문서 문자열은 다음과 같습니다(#123456)."""
308309</ code > </ pre >
309310</ li >
310- < li > < p > 달리 명시되지 않는 한, < code > 8</ code > 을 따르십시오('8'에 주의하여
311- < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> 섹션
312- 2</ a > 를 참고하세요.) </ p >
311+ < li > < p > Unless otherwise specified, follow < a href =" https://peps.python.org/pep-0008/ " > PEP 8</ a >
312+ (with careful attention paid to < a href ="https://www.python.org/dev/peps/pep-0008/#a-foolish-consistency-is-the-hobgoblin-of-little-minds "> Section
313+ 2</ a > ). </ p >
313314</ li >
314315</ ul >
315316
You can’t perform that action at this time.
0 commit comments