diff options
| author | Josh Ferrell <josh@vector35.com> | 2025-05-20 17:14:34 -0400 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2025-05-20 17:14:34 -0400 |
| commit | 51d58f64067f55f4ea8d2beb54ca18d20946dc24 (patch) | |
| tree | b7f3eabd33ede75ecadaa1db219d213cc5655fe0 /python/project.py | |
| parent | e0dbaf8b50e80e2b0a5edcdf088931953b43bc66 (diff) | |
Fix type hints in project python api
Diffstat (limited to 'python/project.py')
| -rw-r--r-- | python/project.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/project.py b/python/project.py index 9db5042f..4357f276 100644 --- a/python/project.py +++ b/python/project.py @@ -560,7 +560,7 @@ class Project: """ return core.BNProjectDeleteFolder(self._handle, folder._handle, None, _wrap_progress(progress_func)) - def create_file_from_path(self, path: AsPath, folder: Optional[ProjectFile], name: str, description: str = "", progress_func: ProgressFuncType = _nop) -> ProjectFile: + def create_file_from_path(self, path: AsPath, folder: Optional[ProjectFolder], name: str, description: str = "", progress_func: ProgressFuncType = _nop) -> ProjectFile: """ Create a file in the project from a path on disk @@ -586,7 +586,7 @@ class Project: return ProjectFile(handle=file_handle) - def create_file(self, contents: bytes, folder: Optional[ProjectFile], name: str, description: str = "", progress_func: ProgressFuncType = _nop) -> ProjectFile: + def create_file(self, contents: bytes, folder: Optional[ProjectFolder], name: str, description: str = "", progress_func: ProgressFuncType = _nop) -> ProjectFile: """ Create a file in the project |
