Definitionپێناسە
An optional note in Python code that says which a variable, parameter or return value should have: def greet(name: str) -> str:. Python does not check it while running; editors and checking tools use it to find mistakes.
تێبینییەکی ئارەزوومەندانەیە لە کۆدی Pythonـدا کە دەڵێت ، یان دەبێت چ هەبێت: def greet(name: str) -> str:. Python لە کاتی جێبەجێکردندا نایپشکنێت، بەڵام دەستکاریکەرەکان و ئامرازەکانی پشکنین بۆ دۆزینەوەی هەڵە بەکاری دەهێنن.
Exampleنموونە
The hints say name should be a str and the result is a str.
تێبینییەکان دەڵێن name دەبێت str بێت و ئەنجامەکەش strـە.
def greet(name: str) -> str:
return "Hello, " + name
print(greet("Hana")) # Hello, HanaOther Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
تێبینیی جۆرەکە، تێبینییەکانی جۆر، تێبینییەکی جۆر
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
تێبینی (note) + جۆر (type, as in data-type); ئاماژە is avoided because it is the registry's reference. Proposed.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
What type hints look like in Python, how editors use them to warn you, and why Python does not check them while running.
لە چۆن دەنووسرێن، چۆن بەکاریان دەهێنن بۆ ئەوەی ئاگادارت بکەنەوە و بۆچی لە نایانپشکنێت.