У меня есть это Docstring: < /p>
def get_crypto_price(crypto: str, currency: str, max_attempts: int = 3) -> float | None:
"""
Retrieves the price of a cryptocurrency in a specified currency using the CoinGecko API.
Args:
crypto (str): The cryptocurrency to retrieve the price for (e.g., 'bitcoin').
currency (str): The currency to retrieve the price in (e.g., 'usd').
max_attempts (int): The maximum number of attempts to make before giving up (default: 3).
Returns:
float | None: The price of the cryptocurrency in the specified currency, or None if the price could not be retrieved.
"""
< /code>
Но он отображается как это в коде VS, без новой линии между валютой и строками max_attempts:
< /p>
how -intempts новая строка в информации о наведении?
Подробнее здесь: https://stackoverflow.com/questions/760 ... hover-info
Почему у этого Python Docstring нет новичков в информации о падении кода VS? ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как исправить «Отсутствует модуль docstringpylint (отсутствует-модуль-docstring)»
Anonymous » » в форуме Python - 0 Ответы
- 21 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Как исправить «Отсутствует модуль docstringpylint (отсутствует-модуль-docstring)»
Anonymous » » в форуме Python - 0 Ответы
- 18 Просмотры
-
Последнее сообщение Anonymous
-