- Sort Score
- Num 10 results
- Language All
Results 771 - 780 of 880 for def2 (0.09 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 10.6K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
## Classes as dependencies { #classes-as-dependencies_1 } You might notice that to create an instance of a Python class, you use that same syntax. For example: ```Python class Cat: def __init__(self, name: str): self.name = name fluffy = Cat(name="Mr Fluffy") ``` In this case, `fluffy` is an instance of the class `Cat`. And to create `fluffy`, you are "calling" `Cat`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 6.8K bytes - Click Count (0) -
docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md
## Classes como dependências { #classes-as-dependencies_1 } Você deve ter percebido que para criar um instância de uma classe em Python, a mesma sintaxe é utilizada. Por exemplo: ```Python class Cat: def __init__(self, name: str): self.name = name fluffy = Cat(name="Mr Fluffy") ``` Nesse caso, `fluffy` é uma instância da classe `Cat`. E para criar `fluffy`, você está "chamando" `Cat`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:48:53 GMT 2026 - 7.3K bytes - Click Count (0) -
docs/uk/docs/tutorial/request-files.md
Наприклад, всередині `async` *функції операції шляху* ви можете отримати вміст за допомогою: ```Python contents = await myfile.read() ``` Якщо ви знаходитесь у звичайній `def` *функції операції шляху*, ви можете отримати доступ до `UploadFile.file` безпосередньо, наприклад: ```Python contents = myfile.file.read() ``` /// note | Технічні деталі `async`
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 11K bytes - Click Count (0) -
docs/uk/docs/tutorial/server-sent-events.md
/// ### Не-async *функції операцій шляху* { #non-async-path-operation-functions } Ви також можете використовувати звичайні функції `def` (без `async`) і використовувати `yield` так само. FastAPI подбає про коректне виконання, щоб воно не блокувало цикл подій. Оскільки в цьому випадку функція не async, коректним типом повернення буде `Iterable[Item]`:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:25:54 GMT 2026 - 7.1K bytes - Click Count (0) -
docs/pt/docs/advanced/settings.md
```Python Settings() ``` um novo objeto `Settings` seria criado e, na criação, ele leria o arquivo `.env` novamente. Se a função de dependência fosse assim: ```Python def get_settings(): return Settings() ``` criaríamos esse objeto para cada requisição e leríamos o arquivo `.env` para cada requisição. ⚠️
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 11.5K bytes - Click Count (0) -
build-tools-internal/build.gradle
/***************************************************************************** * Java version * *****************************************************************************/ def minCompilerJava = JavaVersion.toVersion(file('src/main/resources/minimumCompilerVersion').text) targetCompatibility = minCompilerJava sourceCompatibility = minCompilerJava
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 13 18:10:22 GMT 2021 - 11.3K bytes - Click Count (0) -
docs/es/docs/tutorial/first-steps.md
Será llamada por **FastAPI** cuando reciba un request en la URL "`/`" usando una operación `GET`. En este caso, es una función `async`. --- También podrías definirla como una función normal en lugar de `async def`: {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *} /// note | Nota Si no sabes la diferencia, Revisa la sección [Async: *"¿Tienes prisa?"*](../async.md#in-a-hurry). ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 13.9K bytes - Click Count (0) -
docs/fr/docs/tutorial/first-steps.md
Dans ce cas, c’est une fonction `async`. --- Vous pouvez aussi la définir comme une fonction normale au lieu de `async def` : {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *} /// note | Remarque Si vous ne connaissez pas la différence, consultez [Asynchrone : « Pressé ? »](../async.md#in-a-hurry). ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 15.1K bytes - Click Count (0) -
docs/pt/docs/tutorial/first-steps.md
Ela será chamada pelo **FastAPI** sempre que receber uma requisição para a URL "`/`" usando uma operação `GET`. Neste caso, é uma função `async`. --- Você também pode defini-la como uma função normal em vez de `async def`: {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *} /// note | Nota Se você não sabe a diferença, verifique o [Async: *"Com pressa?"*](../async.md#in-a-hurry). ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 14.2K bytes - Click Count (0)