Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_depends_hashable (0.06 sec)

  1. tests/test_depends_hashable.py

    # as other tools that use them depend on that
    # Ref: https://github.com/fastapi/fastapi/pull/14320
    
    from fastapi import Depends, Security
    
    
    def dep():
        pass
    
    
    def test_depends_hashable():
        dep()  # just for coverage
        d1 = Depends(dep)
        d2 = Depends(dep)
        d3 = Depends(dep, scope="function")
        d4 = Depends(dep, scope="function")
    
        s1 = Security(dep)
        s2 = Security(dep)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 19 16:50:18 UTC 2025
    - 596 bytes
    - Viewed (0)
Back to top