René's URL Explorer Experiment


Title: Mypy linting issue with Repo.clone_from and progress bar · Issue #2001 · gitpython-developers/GitPython · GitHub

Open Graph Title: Mypy linting issue with Repo.clone_from and progress bar · Issue #2001 · gitpython-developers/GitPython

X Title: Mypy linting issue with Repo.clone_from and progress bar · Issue #2001 · gitpython-developers/GitPython

Description: Hi, Consider the following example: import rich.progress import git from git import Repo from rich.console import Console console = Console(log_path=False) class GitProgressPrinter(git.RemoteProgress): def __init__(self, progress, name):...

Open Graph Description: Hi, Consider the following example: import rich.progress import git from git import Repo from rich.console import Console console = Console(log_path=False) class GitProgressPrinter(git.RemoteProgre...

X Description: Hi, Consider the following example: import rich.progress import git from git import Repo from rich.console import Console console = Console(log_path=False) class GitProgressPrinter(git.RemoteProgre...

Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2001

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mypy linting issue with Repo.clone_from and progress bar","articleBody":"Hi,\n\nConsider the following example:\n\n```python\nimport rich.progress\nimport git\nfrom git import Repo\nfrom rich.console import Console\n\nconsole = Console(log_path=False)\n\nclass GitProgressPrinter(git.RemoteProgress):\n    def __init__(self, progress, name):\n        super().__init__()\n        self.progress = progress\n        self.name = name\n        self.task = progress.add_task(name)\n\n    def update(self, op_code, cur_count, max_count=None, message=\"\"):\n        pass\n\n\ndef main():\n    with rich.progress.Progress(console=console) as progress:\n        progress_bar = GitProgressPrinter(progress, \"My Repo\")\n        Repo.clone_from(\"url\", \"dir\", progress=progress_bar, depth=1)\n```\n\nUsing `gitpython==3.1.44` and `mypy==1.15.0`, it shows the following message:\n\n![Image](https://github.com/user-attachments/assets/1432305c-a0b5-40be-ba2a-a9a8e242ebdb)\n\n```\nArgument of type \"GitProgressPrinter\" cannot be assigned to parameter \"progress\" of type \"CallableProgress\" in function \"clone_from\"\n  Type \"GitProgressPrinter\" is not assignable to type \"CallableProgress\"\n    Type \"GitProgressPrinter\" is not assignable to type \"(int, str | float, str | float | None, str) -> None\"\n    \"GitProgressPrinter\" is not assignable to \"None\"\n```\n\nCan you help me understand what's wrong here? Missing typing info on the gitpython side?","author":{"url":"https://github.com/jdumas","@type":"Person","name":"jdumas"},"datePublished":"2025-02-07T20:15:40Z","url":"https://github.com/gitpython-developers/GitPython/issues/2001"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2405722c-67b8-3df8-16ef-4e3a177394e9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC718:117C62:E9C0AA:138FE4D:6B010B0F
html-safe-nonced0a5bfc7f209f4e9681c0afcbb3ba0e9588804dc818b3ec58d0fbadb03c69d5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzE4OjExN0M2MjpFOUMwQUE6MTM4RkU0RDo2QjAxMEIwRiIsInZpc2l0b3JfaWQiOiI4NjY0ODY0MDA0ODMwNzI2OTI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac858dceb8de7670e6b4c5aad11ab451caa6faa316c03906763dc2c3cd31a08b47
hovercard-subject-tagissue:2839012285
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/2001/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c43ebae06c0604f8c5873b26f62c8adaee4a078675010e96789622fff9f8e04f/gitpython-developers/GitPython/issues/2001
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c43ebae06c0604f8c5873b26f62c8adaee4a078675010e96789622fff9f8e04f/gitpython-developers/GitPython/issues/2001
og:image:altHi, Consider the following example: import rich.progress import git from git import Repo from rich.console import Console console = Console(log_path=False) class GitProgressPrinter(git.RemoteProgre...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejdumas
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttp://github.com/gitpython-developers/GitPython/issues/2001#start-of-content
http://github.com/
Sign inhttp://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F2001
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttp://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F2001
Sign uphttp://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttp://github.com/gitpython-developers/GitPython/issues/2001
Reloadhttp://github.com/gitpython-developers/GitPython/issues/2001
Reloadhttp://github.com/gitpython-developers/GitPython/issues/2001
gitpython-developershttp://github.com/gitpython-developers
GitPythonhttp://github.com/gitpython-developers/GitPython
Codehttp://github.com/gitpython-developers/GitPython
Issues1 (1)http://github.com/gitpython-developers/GitPython/issues
Pull requestshttp://github.com/gitpython-developers/GitPython/pulls
Discussionshttp://github.com/gitpython-developers/GitPython/discussions
Actionshttp://github.com/gitpython-developers/GitPython/actions
Security and quality42 (42)http://github.com/gitpython-developers/GitPython/security
Insightshttp://github.com/gitpython-developers/GitPython/insights
http://github.com/gitpython-developers/GitPython
New issuehttp://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/2001
New issuehttp://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/2001
Mypy linting issue with Repo.clone_from and progress barhttp://github.com/gitpython-developers/GitPython/issues/2001#top
https://github.com/jdumas
jdumashttps://github.com/jdumas
on Feb 7, 2025https://github.com/gitpython-developers/GitPython/issues/2001#issue-2839012285
https://private-user-images.githubusercontent.com/578702/411071040-1432305c-a0b5-40be-ba2a-a9a8e242ebdb.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzA3ODAsIm5iZiI6MTc5NTIzMDQ4MCwicGF0aCI6Ii81Nzg3MDIvNDExMDcxMDQwLTE0MzIzMDVjLWEwYjUtNDBiZS1iYTJhLWE5YThlMjQyZWJkYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQwMzA4MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNWU1YTQyOGMzMzBiZTFkZmFjMDhmZDEzYjc2NzRmMWJmNTllZmNjYjIzNzliZTEyOWY2YjRlYWVlZWVmOGQwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.LYXHJz7Gv_A1hvEYWyC1Sg_UGq99aQZHJh-QtoaX3RA
gitpython-developershttp://github.com/gitpython-developers
on Feb 8, 2025https://github.com/gitpython-developers/GitPython/issues/2001#event-16235652686
Byronhttp://github.com/Byron
#2002 https://github.com/gitpython-developers/GitPython/discussions/2002
on Feb 8, 2025https://github.com/gitpython-developers/GitPython/issues/2001#event-16235652693
Sign up for freehttp://github.com/signup?return_to=https://github.com/gitpython-developers/GitPython/issues/2001
Sign in to commenthttp://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/2001
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.