- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 920 for types (0.2 sec)
-
internal/config/dns/types.go
package dns import ( "encoding/json" "time" ) const ( defaultTTL = 30 defaultContextTimeout = 5 * time.Minute ) // SrvRecord - represents a DNS service record type SrvRecord struct { Host string `json:"host,omitempty"` Port json.Number `json:"port,omitempty"` Priority int `json:"priority,omitempty"` Weight int `json:"weight,omitempty"`
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 2K bytes - Viewed (0) -
internal/logger/target/types/types.go
package types // TargetType indicates type of the target e.g. console, http, kafka type TargetType uint8 //go:generate stringer -type=TargetType -trimprefix=Target $GOFILE // Constants for target types const ( _ TargetType = iota TargetConsole TargetHTTP TargetKafka ) // TargetStats contains statistics for a target. type TargetStats struct {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Nov 10 18:20:21 GMT 2022 - 1.4K bytes - Viewed (0) -
fastapi/types.py
import types from enum import Enum from typing import Any, Callable, Dict, Set, Type, TypeVar, Union from pydantic import BaseModel DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any]) UnionType = getattr(types, "UnionType", Union) ModelNameMap = Dict[Union[Type[BaseModel], Type[Enum]], str]
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Dec 12 00:29:03 GMT 2023 - 383 bytes - Viewed (0) -
docs/zh/docs/python-types.md
现在假设我们又一次正在创建这个函数,这次添加了类型提示。 在同样的地方,通过 `Ctrl+Space` 触发自动补全,你会发现: <img src="https://fastapi.tiangolo.com/img/python-types/image02.png"> 这样,你可以滚动查看选项,直到你找到看起来眼熟的那个: <img src="https://fastapi.tiangolo.com/img/python-types/image03.png"> ## 更多动机 下面是一个已经有类型提示的函数: ```Python hl_lines="1" {!../../../docs_src/python_types/tutorial003.py!} ``` 因为编辑器已经知道了这些变量的类型,所以不仅能对代码进行补全,还能检查其中的错误:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.6K bytes - Viewed (0) -
docs/pt/docs/python-types.md
<img src="/img/python-types/image02.png"> Com isso, você pode rolar, vendo as opções, até encontrar o que "toca uma campainha": <img src="/img/python-types/image03.png"> ## Mais motivação Marque esta função, ela já possui type hints: ```Python hl_lines="1" {!../../../docs_src/python_types/tutorial003.py!} ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.6K bytes - Viewed (0) -
docs/es/docs/python-types.md
<img src="https://fastapi.tiangolo.com/img/python-types/image02.png"> Con esto puedes moverte hacia abajo viendo las opciones hasta que encuentras una que te suene: <img src="https://fastapi.tiangolo.com/img/python-types/image03.png"> ## Más motivación Mira esta función que ya tiene type hints: ```Python hl_lines="1" {!../../../docs_src/python_types/tutorial003.py!} ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.2K bytes - Viewed (0) -
docs/tr/docs/python-types.md
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.7K bytes - Viewed (0) -
cmd/testdata/config/invalid-types.yaml
Anis Eleuch <******@****.***> 1701941636 -0800
Others - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Dec 07 09:33:56 GMT 2023 - 836 bytes - Viewed (0) -
docs/en/docs/tutorial/extra-data-types.md
* You can check all the valid pydantic data types here: <a href="https://docs.pydantic.dev/latest/usage/types/types/" class="external-link" target="_blank">Pydantic data types</a>. ## Example Here's an example *path operation* with parameters using some of the above types. === "Python 3.10+" ```Python hl_lines="1 3 12-16" {!> ../../../docs_src/extra_data_types/tutorial001_an_py310.py!} ``` === "Python 3.9+"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 4.1K bytes - Viewed (0) -
internal/grid/types_test.go
Klaus Post <******@****.***> 1700528975 -0800
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Nov 21 01:09:35 GMT 2023 - 3.7K bytes - Viewed (0)