Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 35 for declaring (0.31 seconds)

  1. docs/en/docs/python-types.md

    Python has support for optional "type hints" (also called "type annotations").
    
    These **"type hints"** or annotations are a special syntax that allow declaring the <abbr title="for example: str, int, float, bool">type</abbr> of a variable.
    
    By declaring types for your variables, editors and tools can give you better support.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  2. docs/en/docs/advanced/security/oauth2-scopes.md

    ## OAuth2 Security scheme { #oauth2-security-scheme }
    
    The first change is that now we are declaring the OAuth2 security scheme with two available scopes, `me` and `items`.
    
    The `scopes` parameter receives a `dict` with each scope as a key and the description as the value:
    
    {* ../../docs_src/security/tutorial005_an_py310.py hl[63:66] *}
    
    Because we are now declaring those scopes, they will show up in the API docs when you log-in/authorize.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 10:49:48 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/reflect/Invokable.java

      }
    
      @SuppressWarnings("unchecked") // The declaring class is T's raw class, or one of its supertypes.
      @Override
      public final Class<? super T> getDeclaringClass() {
        return (Class<? super T>) member.getDeclaringClass();
      }
    
      /** Returns the type of {@code T}. */
      // Overridden in TypeToken#method() and TypeToken#constructor()
      @SuppressWarnings("unchecked") // The declaring class is T.
      public TypeToken<T> getOwnerType() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 18.4K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

      /**
       * Get the full set of requirements for a tester class.
       *
       * @param testerMethod a test method of a tester class
       * @return all the constraints implicitly or explicitly required by the method, its declaring
       *     class, or any of its superclasses.
       * @throws ConflictingRequirementsException if the requirements are mutually inconsistent.
       */
      public static TesterRequirements getTesterRequirements(Method testerMethod)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 12.4K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

         * This method will look for a method with same name
         * and signature declared in a public superclass or implemented interface of this
         * method's declaring class. This counterpart method is publicly callable.
         *
         * @param method a method whose publicly callable counterpart is requested.
         * @return the publicly callable counterpart method. Note that if the parameter
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

        }
    
        // Helper: reflectively set private/protected field on an object
        private static void setField(Object target, Class<?> declaring, String name, Object value) {
            try {
                Field f = declaring.getDeclaredField(name);
                f.setAccessible(true);
                f.set(target, value);
            } catch (Exception e) {
                throw new RuntimeException(e);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/sql-databases.md

    Because all the **fields actually change** (the type now includes `None` and they now have a default value of `None`), we need to **re-declare** them.
    
    We don't really need to inherit from `HeroBase` because we are re-declaring all the fields. I'll leave it inheriting just for consistency, but this is not necessary. It's more a matter of personal taste. 🤷
    
    The fields of `HeroUpdate` are:
    
    * `name`
    * `age`
    * `secret_name`
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 02 05:06:56 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/query-params-str-validations.md

    When we don't need to declare more validations or metadata, we can make the `q` query parameter required just by not declaring a default value, like:
    
    ```Python
    q: str
    ```
    
    instead of:
    
    ```Python
    q: str | None = None
    ```
    
    But we are now declaring it with `Query`, for example like:
    
    ```Python
    q: Annotated[str | None, Query(min_length=3)] = None
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  9. src/bytes/buffer.go

    //
    // In most cases, new([Buffer]) (or just declaring a [Buffer] variable) is
    // sufficient to initialize a [Buffer].
    func NewBuffer(buf []byte) *Buffer { return &Buffer{buf: buf} }
    
    // NewBufferString creates and initializes a new [Buffer] using string s as its
    // initial contents. It is intended to prepare a buffer to read an existing
    // string.
    //
    // In most cases, new([Buffer]) (or just declaring a [Buffer] variable) is
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  10. impl/maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java

            assertTrue(
                    projects.contains(pluginLevelDepProject),
                    "Expected " + projects + " to contain " + pluginLevelDepProject);
    
            // the declaring project MUST be listed after the plugin and its plugin-level dep, though.
            assertEquals(declaringProject, projects.get(3));
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 12.7K bytes
    - Click Count (0)
Back to Top