Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for tiny (0.25 sec)

  1. docs/en/docs/tutorial/dependencies/index.md

        You just pass it to `Depends` and **FastAPI** knows how to do the rest.
    
    ## Share `Annotated` dependencies
    
    In the examples above, you see that there's a tiny bit of **code duplication**.
    
    When you need to use the `common_parameters()` dependency, you have to write the whole parameter with the type annotation and `Depends()`:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. internal/grid/grid_test.go

    			os.Exit(2)
    		}
    	}()
    	return func() {
    		close(cc)
    	}
    }
    
    func assertNoActive(t *testing.T, c *Connection) {
    	t.Helper()
    	// Tiny bit racy for tests, but we try to play nice.
    	for i := 10; i >= 0; i-- {
    		runtime.Gosched()
    		stats := c.Stats()
    		if stats.IncomingStreams != 0 {
    			if i > 0 {
    				time.Sleep(100 * time.Millisecond)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  3. docs/en/docs/async.md

    called directly (as it would block the server).
    
    If you are coming from another async framework that does not work in the way described above and you are used to defining trivial compute-only *path operation functions* with plain `def` for a tiny performance gain (about 100 nanoseconds), please note that in **FastAPI** the effect would be quite opposite. In these cases, it's better to use `async def` unless your *path operation functions* use code that performs blocking <abbr title="Input/Output:...
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    // metaDataPoolPut will put an unused small buffer back into the pool.
    func metaDataPoolPut(buf []byte) {
    	if cap(buf) >= metaDataReadDefault && cap(buf) < metaDataReadDefault*4 {
    		//nolint:staticcheck // SA6002 we are fine with the tiny alloc
    		metaDataPool.Put(buf)
    	}
    }
    
    // readXLMetaNoData will load the metadata, but skip data segments.
    // This should only be used when data is never interesting.
    // If data is not xlv2, it is returned in full.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  5. docs/vi/docs/index.md

    </div>
    
    <details markdown="1">
    <summary>Về lệnh <code>uvicorn main:app --reload</code>...</summary>
    
    Lệnh `uvicorn main:app` tham chiếu tới những thành phần sau:
    
    * `main`: tệp tin `main.py` (một Python "module").
    * `app`: object được tạo trong tệp tin `main.py` tại dòng `app = FastAPI()`.
    * `--reload`: chạy lại server sau khi code thay đổi. Chỉ sử dụng trong quá trình phát triển.
    
    </details>
    
    ### Kiểm tra
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  6. docs/vi/docs/features.md

    ### Ngắn gọn
    
    FastAPI có các giá trị mặc định hợp lý cho mọi thứ, với các cấu hình tùy chọn ở mọi nơi. Tất cả các tham số có thể được tinh chỉnh để thực hiện những gì bạn cần và để định nghĩa API bạn cần.
    
    Nhưng mặc định, tất cả **đều hoạt động**.
    
    ### Validation
    
    * Validation cho đa số (hoặc tất cả?) **các kiểu dữ liệu** Python, bao gồm:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  7. docs/vi/docs/python-types.md

    Tham số `name` **vẫn được yêu cầu** (không phải là *tùy chọn*) vì nó không có giá trị mặc định. Trong khi đó, `name` chấp nhận `None` như là giá trị:
    
    ```Python
    say_hi(name=None)  # This works, None is valid 🎉
    ```
    
    Tin tốt là, khi bạn sử dụng Python 3.10, bạn sẽ không phải lo lắng về điều đó, bạn sẽ có thể sử dụng `|` để định nghĩa hợp của các kiểu dữ liệu một cách đơn giản:
    
    ```Python hl_lines="1  4"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  8. Makefile.core.mk

    # If pre-commit script is not used, please run this manually.
    precommit: format lint
    
    format: fmt ## Auto formats all code. This should be run before sending a PR.
    
    fmt: format-go format-python tidy-go
    
    ifeq ($(DEBUG),1)
    # gobuild script uses custom linker flag to set the variables.
    RELEASE_LDFLAGS=''
    else
    RELEASE_LDFLAGS='-extldflags -static -s -w'
    endif
    
    # List of all binaries to build
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 26 19:45:17 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  9. RELEASE.md

    # Release 2.12.1
    
    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)
Back to top