Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork937
-
Hi, Consider the following example: importrich.progressimportgitfromgitimportRepofromrich.consoleimportConsoleconsole=Console(log_path=False)classGitProgressPrinter(git.RemoteProgress):def__init__(self,progress,name):super().__init__()self.progress=progressself.name=nameself.task=progress.add_task(name)defupdate(self,op_code,cur_count,max_count=None,message=""):passdefmain():withrich.progress.Progress(console=console)asprogress:progress_bar=GitProgressPrinter(progress,"My Repo")Repo.clone_from("url","dir",progress=progress_bar,depth=1) Using
Can you help me understand what's wrong here? Missing typing info on the gitpython side? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 0 comments
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
Converted from issue
This discussion was converted from issue #2001 on February 08, 2025 15:12.