- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Fluffy (0.04 sec)
-
docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 16K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/classes-as-dependencies.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md
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`. Então, uma classe Python também é "chamável". Então, no **FastAPI**, você pode utilizar uma classe Python como uma dependência.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.6K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
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`. So, a Python class is also a **callable**. Then, in **FastAPI**, you could use a Python class as a dependency.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.1K bytes - Viewed (0)