- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 121 for declares (0.24 sec)
-
docs/en/docs/tutorial/dependencies/sub-dependencies.md
{* ../../docs_src/dependencies/tutorial005_an_py310.py hl[13] *} Let's focus on the parameters declared: * Even though this function is a dependency ("dependable") itself, it also declares another dependency (it "depends" on something else). * It depends on the `query_extractor`, and assigns the value returned by it to the parameter `q`. * It also declares an optional `last_query` cookie, as a `str`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.7K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
Each "scope" is just a string (without spaces). They are normally used to declare specific security permissions, for example: * `users:read` or `users:write` are common examples. * `instagram_basic` is used by Facebook / Instagram. * `https://www.googleapis.com/auth/drive` is used by Google. /// info In OAuth2 a "scope" is just a string that declares a specific permission required.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.4K bytes - Viewed (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
/// {* ../../docs_src/security/tutorial005_an_py310.py hl[157] *} ## Declare scopes in *path operations* and dependencies { #declare-scopes-in-path-operations-and-dependencies } Now we declare that the *path operation* for `/users/me/items/` requires the scope `items`. For this, we import and use `Security` from `fastapi`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
assertEquals("SessionSetupHandler", clazz.getSimpleName(), "Simple name must match source"); } @Test @DisplayName("Interface declares no methods or fields") void testNoMembers() { // Assert assertEquals(0, SessionSetupHandler.class.getDeclaredMethods().length, "No methods expected");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
docs/es/docs/tutorial/query-params.md
## Múltiples parámetros de path y de query Puedes declarar múltiples parámetros de path y de query al mismo tiempo, **FastAPI** sabe cuál es cuál. Y no tienes que declararlos en un orden específico. Serán detectados por nombre: {* ../../docs_src/query_params/tutorial004_py310.py hl[6,8] *} ## Parámetros de query requeridos
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:29:01 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; /** * Tests for the {@link AllocInfo} interface. * Since {@code AllocInfo} only declares getters, the tests focus on * verifying that implementations honour the contract. */ @ExtendWith(MockitoExtension.class) public class AllocInfoTest { @Mock AllocInfo mockAllocInfo; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
assertEquals(boolean.class, m1.getReturnType()); assertEquals(0, m1.getParameterCount()); assertEquals(0, m1.getExceptionTypes().length); // overlaps(SmbResourceLocator): boolean, declares CIFSException Method m2 = clazz.getMethod("overlaps", SmbResourceLocator.class); assertEquals(boolean.class, m2.getReturnType()); assertEquals(1, m2.getParameterCount());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
docs/en/docs/tutorial/body.md
```JSON { "name": "Foo", "price": 45.2 } ``` ## Declare it as a parameter { #declare-it-as-a-parameter } To add it to your *path operation*, declare it the same way you declared path and query parameters: {* ../../docs_src/body/tutorial001_py310.py hl[16] *} ...and declare its type as the model you created, `Item`. ## Results { #results } With just that Python type declaration, **FastAPI** will:
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:58:56 UTC 2025 - 7.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
* <p>The declaration methods must be public. */ @AndroidIncompatible // only used by android incompatible tests. @NullUnmarked abstract class SubtypeTester implements Cloneable { /** Annotates a public method that declares subtype assertion. */ @RequiredModifiers(Modifier.PUBLIC) @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @Keep @interface TestSubtype {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 6.2K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
/// This parameter doesn't create that endpoint / *path operation*, but declares that the URL `/token` will be the one that the client should use to get the token. That information is used in OpenAPI, and then in the interactive API documentation systems. We will soon also create the actual path operation.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 8.4K bytes - Viewed (0)