Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1081 - 1090 of 2,493 for pagh (0.02 seconds)

  1. tests/test_ambiguous_params.py

    import pytest
    from fastapi import Depends, FastAPI, Path
    from fastapi.param_functions import Query
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    def test_no_annotated_defaults():
        with pytest.raises(
            AssertionError, match="Path parameters cannot have a default value"
        ):
    
            @app.get("/items/{item_id}/")
            async def get_item(item_id: Annotated[int, Path(default=1)]):
                pass  # pragma: nocover
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2K bytes
    - Click Count (1)
  2. tests/test_computed_fields.py

        client = TestClient(app)
        return client
    
    
    @pytest.mark.parametrize("client", [True, False], indirect=True)
    @pytest.mark.parametrize("path", ["/", "/responses"])
    def test_get(client: TestClient, path: str):
        response = client.get(path)
        assert response.status_code == 200, response.text
        assert response.json() == {"width": 3, "length": 4, "area": 12}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  3. internal/logger/logrotate.go

    				Message: msg,
    				Time:    time.Now().UTC(),
    				Trace:   &log.Trace{Message: msg},
    			})
    		}
    	}
    
    	path := filepath.Join(w.opts.Directory, w.opts.FileNameFunc())
    	f, err := newFile(path)
    	if err != nil {
    		return fmt.Errorf("unable to create new file at %v: %w", path, err)
    	}
    
    	w.f = f
    
    	return nil
    }
    
    // NewDir creates a new concurrency safe Writer which performs log rotation.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

                // Extract object name from path, removing leading slash if present and decoding URL encoding
                final String path = url.getPath();
                if (path != null && !path.isEmpty()) {
                    final String pathWithoutLeadingSlash = path.startsWith("/") ? path.substring(1) : path;
                    // Decode URL-encoded characters (e.g., %20 -> space)
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Nov 20 08:52:56 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

              ExampleStackTrace path = new ExampleStackTrace(preAcquiredLock, this);
              path.setStackTrace(entry.getValue().getStackTrace());
              path.initCause(found);
              return path;
            }
          }
          return null;
        }
      }
    
      /**
       * CycleDetectingLock implementations must call this method before attempting to acquire the lock.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 11 17:06:34 GMT 2025
    - 35.9K bytes
    - Click Count (0)
  6. docs/ja/docs/tutorial/background-tasks.md

    `BackgroundTasks` の使用は依存性注入システムでも機能し、様々な階層 (*path operations 関数*、依存性 (依存可能性)、サブ依存性など) で `BackgroundTasks` 型のパラメーターを宣言できます。
    
    **FastAPI** は、それぞれの場合の処理​​方法と同じオブジェクトの再利用方法を知っているため、すべてのバックグラウンドタスクがマージされ、バックグラウンドで後で実行されます。
    
    {* ../../docs_src/background_tasks/tutorial002.py hl[13,15,22,25] *}
    
    この例では、レスポンスが送信された *後* にメッセージが `log.txt` ファイルに書き込まれます。
    
    リクエストにクエリがあった場合、バックグラウンドタスクでログに書き込まれます。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFile.java

         */
        public String getDfsPath() throws SmbException {
            resolveDfs(null);
            if (dfsReferral == null) {
                return null;
            }
            String path = "smb1:/" + dfsReferral.server + "/" + dfsReferral.share + unc;
            path = path.replace('\\', '/');
            if (isDirectory()) {
                path += '/';
            }
            return path;
        }
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/zip/ZipFileUtil.java

            return create(new File(toZipFilePath(zipUrl)));
        }
    
        /**
         * Returns the path of the Zip file specified by the URL.
         *
         * @param zipUrl
         *            URL pointing to the Zip file. Must not be {@literal null}.
         * @return The path of the Zip file specified by the URL.
         */
        public static String toZipFilePath(final URL zipUrl) {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultProjectManagerTest.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.internal.impl;
    
    import java.nio.file.Path;
    import java.nio.file.Paths;
    import java.util.function.Supplier;
    
    import org.apache.maven.api.Language;
    import org.apache.maven.api.ProducedArtifact;
    import org.apache.maven.api.Project;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Dec 17 16:17:01 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  10. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

                error("Milestone not set: please rerun the task with `--milestone <milestone>`")
            }
            val prs: MutableList<GitHubPullRequest> = mutableListOf()
            for (page in 1..10) {
                val prPage = getMergedContributorPullRequests(page)
                prs.addAll(prPage)
                if (prPage.size < PAGE_SIZE) {
                    break
                }
            }
            return prs
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jun 24 07:54:08 GMT 2025
    - 5.7K bytes
    - Click Count (0)
Back to Top