MCPcopy
hub / github.com/Textualize/rich / open

Method open

rich/progress.py:1280–1293  ·  view source on GitHub ↗
(
        self,
        file: Union[str, "PathLike[str]", bytes],
        mode: Literal["rb"],
        buffering: int = -1,
        encoding: Optional[str] = None,
        errors: Optional[str] = None,
        newline: Optional[str] = None,
        *,
        total: Optional[int] = None,
        task_id: Optional[TaskID] = None,
        description: str = "Reading...",
    )

Source from the content-addressed store, hash-verified

1278
1279 @typing.overload
1280 def open(
1281 self,
1282 file: Union[str, "PathLike[str]", bytes],
1283 mode: Literal["rb"],
1284 buffering: int = -1,
1285 encoding: Optional[str] = None,
1286 errors: Optional[str] = None,
1287 newline: Optional[str] = None,
1288 *,
1289 total: Optional[int] = None,
1290 task_id: Optional[TaskID] = None,
1291 description: str = "Reading...",
1292 ) -> BinaryIO:
1293 pass
1294
1295 @typing.overload
1296 def open(

Callers 6

openFunction · 0.95
test_openFunction · 0.80
test_open_text_modeFunction · 0.80
save_table_svg.pyFile · 0.80
cp_progress.pyFile · 0.80
on_broken_pipeMethod · 0.80

Calls 4

add_taskMethod · 0.95
updateMethod · 0.95
_ReaderClass · 0.85
joinMethod · 0.80

Tested by 2

test_openFunction · 0.64
test_open_text_modeFunction · 0.64