Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for __all__ (0.09 sec)

  1. tensorflow/api_template_v1.__init__.py

    contrib = _LazyLoader("contrib", globals(), "tensorflow.contrib",
                          _CONTRIB_WARNING)
    # The templated code that replaces the placeholder above sometimes
    # sets the __all__ variable. If it does, we have to be sure to add
    # "contrib".
    if "__all__" in vars():
      vars()["__all__"].append("contrib")
    
    from tensorflow.python.platform import flags
    # The "app" module will be imported as part of the placeholder section above.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 02 22:16:02 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. internal/s3select/json/record.go

    		}
    	} else if arr, ok := value.ToArray(); ok {
    		v = arr
    	} else {
    		return nil, fmt.Errorf("unsupported sql value %v and type %v", value, value.GetTypeString())
    	}
    
    	name = strings.ReplaceAll(name, "*", "__ALL__")
    	r.KVS = append(r.KVS, jstream.KV{Key: name, Value: v})
    	return r, nil
    }
    
    // WriteCSV - encodes to CSV data.
    func (r *Record) WriteCSV(writer io.Writer, opts sql.WriteCSVOpts) error {
    	var csvRecord []string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. tensorflow/api_template.__init__.py

    try:
      del python
    except NameError:
      pass
    try:
      del core
    except NameError:
      pass
    try:
      del compiler
    except NameError:
      pass
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 02 22:16:02 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/advanced-dependencies.md

    βœ‹οΈ πŸ‘₯ πŸ’š πŸ’ͺ πŸ”— πŸ‘ˆ πŸ”§ 🎚.
    
    ##  "πŸ‡§πŸ‡²" πŸ‘
    
    🐍 πŸ“€ 🌌 βš’ πŸ‘ πŸŽ“ "πŸ‡§πŸ‡²".
    
    🚫 πŸŽ“ ⚫️ (❔ βͺ πŸ‡§πŸ‡²), βœ‹οΈ πŸ‘ πŸ‘ˆ πŸŽ“.
    
    πŸ‘ˆ, πŸ‘₯ πŸ“£ πŸ‘©β€πŸ”¬ `__call__`:
    
    ```Python hl_lines="10"
    {!../../docs_src/dependencies/tutorial011.py!}
    ```
    
    πŸ‘‰ πŸ’Ό, πŸ‘‰ `__call__` βš«οΈβ” **FastAPI** πŸ”œ βš™οΈ βœ… πŸŒ– πŸ”’ & 🎧-πŸ”—, & πŸ‘‰ βš«οΈβ” πŸ”œ πŸ€™ πŸšΆβ€β™€οΈ πŸ’² πŸ”’ πŸ‘† *➑ πŸ› οΈ πŸ”’* βͺ.
    
    ## πŸ”— πŸ‘
    
    & πŸ”œ, πŸ‘₯ πŸ’ͺ βš™οΈ `__init__` πŸ“£ πŸ”’ πŸ‘ πŸ‘ˆ πŸ‘₯ πŸ’ͺ βš™οΈ "πŸ”—" πŸ”—:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. tests/test_dependency_class.py

    
    class CallableDependency:
        def __call__(self, value: str) -> str:
            return value
    
    
    class CallableGenDependency:
        def __call__(self, value: str) -> Generator[str, None, None]:
            yield value
    
    
    class AsyncCallableDependency:
        async def __call__(self, value: str) -> str:
            return value
    
    
    class AsyncCallableGenDependency:
        async def __call__(self, value: str) -> AsyncGenerator[str, None]:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 09 10:54:05 UTC 2020
    - 3.3K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/advanced-dependencies.md

    Not the class itself (which is already a callable), but an instance of that class.
    
    To do that, we declare a method `__call__`:
    
    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[12] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:10:15 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. docs_src/dependencies/tutorial011_an_py39.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    class FixedContentQueryChecker:
        def __init__(self, fixed_content: str):
            self.fixed_content = fixed_content
    
        def __call__(self, q: str = ""):
            if q:
                return self.fixed_content in q
            return False
    
    
    checker = FixedContentQueryChecker("bar")
    
    
    @app.get("/query-checker/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 544 bytes
    - Viewed (0)
  8. fastapi/security/http.py

        ):
            self.model = HTTPBaseModel(scheme=scheme, description=description)
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        async def __call__(
            self, request: Request
        ) -> Optional[HTTPAuthorizationCredentials]:
            authorization = request.headers.get("Authorization")
            scheme, credentials = get_authorization_scheme_param(authorization)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 19 09:47:28 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  9. docs_src/dependencies/tutorial011_an.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class FixedContentQueryChecker:
        def __init__(self, fixed_content: str):
            self.fixed_content = fixed_content
    
        def __call__(self, q: str = ""):
            if q:
                return self.fixed_content in q
            return False
    
    
    checker = FixedContentQueryChecker("bar")
    
    
    @app.get("/query-checker/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 554 bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/advanced-dependencies.md

    Em Python existe uma maneira de fazer com que uma instΓ’ncia de uma classe seja um "chamΓ‘vel".
    
    NΓ£o propriamente a classe (que jΓ‘ Γ© um chamΓ‘vel), mas a instΓ’ncia desta classe.
    
    Para fazer isso, nΓ³s declaramos o mΓ©todo `__call__`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="12"
    {!> ../../docs_src/dependencies/tutorial011_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="11"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top