Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for initialize (0.17 sec)

  1. docs/en/docs/advanced/events.md

    ```Python hl_lines="8"
    {!../../../docs_src/events/tutorial001.py!}
    ```
    
    In this case, the `startup` event handler function will initialize the items "database" (just a `dict`) with some values.
    
    You can add more than one event handler function.
    
    And your application won't start receiving requests until all the `startup` event handlers have completed.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

             *             const val K = 1
             *         }
             *     }
             *
             * the compiler reports "Variable 'K' must be initialized". This happens because there is no guarantee that the companion object
             * was initialized at the time when we use `C.K` for the enum entry `ONE`. To avoid this type of compiler errors, we don't shorten
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  3. RELEASE.md

    *   `tf.all_variables`, `tf.VARIABLES` and `tf.initialize_all_variables` renamed
        to `tf.global_variables`, `tf.GLOBAL_VARIABLES` and
        `tf.global_variables_initializer` respectively.
    *   `tf.zeros_initializer()` and `tf.ones_initializer()` now return a callable
        that must be called with initializer arguments, in your code replace
        `tf.zeros_initializer` with `tf.zeros_initializer()`
    
    ## Bug Fixes and Other Changes
    
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt

            MustBeInitializedWarningImpl(
                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.MUST_BE_INITIALIZED_OR_BE_FINAL) { firDiagnostic ->
            MustBeInitializedOrBeFinalImpl(
                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 24 09:49:26 GMT 2024
    - 208.3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/sql-databases.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/sql_databases/sql_app/main.py!}
        ```
    
    #### Alembic Note
    
    Normally you would probably initialize your database (create tables, etc) with <a href="https://alembic.sqlalchemy.org/en/latest/" class="external-link" target="_blank">Alembic</a>.
    
    And you would also use Alembic for "migrations" (that's its main job).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescKotlinPropertySymbol.kt

        override val initializer: KtInitializerValue?
            get() = withValidityAssertion {
                val initializer = when (val psi = psi) {
                    is KtProperty -> psi.initializer
                    is KtParameter -> psi
                    else -> null
                }
    
                createKtInitializerValue(initializer, descriptor, analysisContext)
            }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:46 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

        if (compileTimeInitializer != null) {
            return KtConstantInitializerValue(compileTimeInitializer.toKtConstantValue(), initializer)
        }
        if (initializer != null) {
            val bindingContext = analysisContext.analyze(initializer)
            val constantValue = ConstantExpressionEvaluator.getConstant(initializer, bindingContext)
            if (constantValue != null) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

                    // For postfix case, the last argument is the operation call invoked on a synthetic local variable `<unary>`. This local
                    // variable is initialized by calling the `get` function.
                    val operationCall = lastArg as? FirFunctionCall ?: return null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 70.8K bytes
    - Viewed (1)
  9. docs/en/docs/release-notes.md

    * Initialize French translations. PR [#1975](https://github.com/tiangolo/fastapi/pull/1975) by [@JulianMaurin-BM](https://github.com/JulianMaurin-BM).
    * Initialize Turkish translations. PR [#1905](https://github.com/tiangolo/fastapi/pull/1905) by [@ycd](https://github.com/ycd).
    
    ### Internal
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescEnumEntrySymbol.kt

        override val name: Name
            get() = withValidityAssertion { descriptor.name }
    
        // There doesn't seem to be a way to determine if `descriptor` has a body or not, so we return an initializer even for enum entries
        // without a body.
        override val enumEntryInitializer: KtEnumEntryInitializerSymbol?
            get() = this
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:46 GMT 2024
    - 3.4K bytes
    - Viewed (0)
Back to top