Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2243)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent 52ad00a commit edef46a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
- id: validate-pyproject

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.2.0
hooks:
- id: ruff
args: ["--fix", "--unsafe-fixes"]
Expand Down
10 changes: 0 additions & 10 deletions cx_Freeze/util.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,30 @@ HANDLE = int | None
class BindError(Exception):
"""BindError Exception."""

...

def AddIcon(target_path: str | Path, exe_icon: str | Path):
"""Add the icon as a resource to the specified file."""
...

def BeginUpdateResource(
path: str | Path, delete_existing_resources: bool = True
) -> HANDLE:
"""Wrapper for BeginUpdateResource."""
...

def UpdateResource(
handle: HANDLE, resource_type: int, resource_id: int, resource_data: bytes
) -> None:
"""Wrapper for UpdateResource."""
...

def EndUpdateResource(handle: HANDLE, discard_changes: bool):
"""Wrapper for EndUpdateResource."""
...

def UpdateCheckSum(target_path: str | Path):
"""Update the CheckSum into the specified executable."""
...

def GetSystemDir() -> str:
r"""Return the Windows system directory (C:\Windows\system for example)."""
...

def GetWindowsDir() -> str:
r"""Return the Windows directory (C:\Windows for example)."""
...

def GetDependentFiles(path: str | Path) -> list[str]:
"""Return a list of files that this file depends on."""
...

0 comments on commit edef46a

Please sign in to comment.