- Sort Score
- Num 10 results
- Language All
Results 1011 - 1020 of 4,187 for uname (0.24 seconds)
-
docs/zh-hant/docs/advanced/advanced-python-types.md
from typing import Optional def say_hi(name: Optional[str]): print(f"Hey {name}!") ``` 參數 `name` 被標註為 `Optional[str]`,但它並不是可選的;你不能在沒有該參數的情況下呼叫這個函式: ```Python say_hi() # 糟了,這會拋出錯誤!😱 ``` 參數 `name` 仍是必填(不是可選),因為它沒有預設值。不過,`name` 可以接受 `None` 作為值: ```Python say_hi(name=None) # 這可行,None 是有效的 🎉 ``` 好消息是,多數情況下你可以直接用 `|` 來定義型別聯集: ```python def say_hi(name: str | None): print(f"Hey {name}!")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 1.9K bytes - Click Count (0) -
tests/error_translator_test.go
type City struct { gorm.Model Name string `gorm:"unique"` } db, err := OpenTestConnection(&gorm.Config{TranslateError: true}) if err != nil { t.Fatalf("failed to connect database, got error %v", err) } dialectors := map[string]bool{"sqlite": true, "postgres": true, "gaussdb": true, "mysql": true, "sqlserver": true} if supported, found := dialectors[db.Dialector.Name()]; !(found && supported) { return }Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 3.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java
} /** * Updates crawling information parameters for the specified session. * Sets the name and expiration time based on the provided parameters. * * @param sessionId the session ID to update * @param name the name to set for the crawling session (uses system name if blank) * @param dayForCleanup number of days until cleanup (sets expiration if >= 0)Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 15.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/entity/SearchRequestParamsTest.java
public void setParameterValues(String name, String[] values) { parameters.put(name, values); } public void setParameter(String name, String value) { singleParameters.put(name, value); } @Override public String[] getParameterValues(String name) { return parameters.get(name); } @OverrideCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 26.5K bytes - Click Count (0) -
.github/workflows/go-lint.yml
name: Linters and Tests on: pull_request: branches: - master # This ensures that previous jobs for the PR are canceled when the PR is # updated. concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true permissions: contents: read jobs: build: name: Go ${{ matrix.go-version }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix:Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 1010 bytes - Click Count (0) -
build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/RestTestsFromSnippetsTask.groovy
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 19.5K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/other-tools.md
```python from asyncer import asyncify from fastapi import FastAPI app = FastAPI() def do_blocking_work(name: str) -> str: # Some blocking I/O operation return f"Hello {name}" @app.get("/items/") async def read_items(): result = await asyncify(do_blocking_work)(name="World") return {"message": result} ``` And run async code inside of blocking sync code with `syncify()`: ```python
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 1.5K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/BuildScanInfoCollectingServices.kt
) { val gradleRootProject = when { project.name == "gradle" -> project.rootProject project.rootProject.name == "build-logic" -> rootProject.gradle.parent?.rootProject else -> project.gradle.parent?.rootProject } if (gradleRootProject != null && System.getenv("TEAMCITY_VERSION") != null) { val rootProjectName = rootProject.name val isInBuildLogic = rootProjectName == "build-logic"Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jun 10 05:45:46 GMT 2025 - 3.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/storage/StorageItem.java
*/ public class StorageItem { private final String name; private final String path; private final boolean directory; private final long size; private final ZonedDateTime lastModified; private final String encodedId; /** * Creates a new StorageItem instance. * * @param name the name of the item * @param path the path of the itemCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 13 02:21:17 GMT 2025 - 2.7K bytes - Click Count (0) -
src/main/resources/fess_config.properties
# Field name for content minhash bits in the index. index.field.content_minhash_bits=content_minhash_bits # Field name for cache in the index. index.field.cache=cache # Field name for digest in the index. index.field.digest=digest # Field name for title in the index. index.field.title=title # Field name for host in the index. index.field.host=host # Field name for site in the index. index.field.site=site
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 59.3K bytes - Click Count (0)