René's URL Explorer Experiment


Title: Issue using Protocol as a base class with Python 3.5.2 · Issue #734 · python/typing · GitHub

Open Graph Title: Issue using Protocol as a base class with Python 3.5.2 · Issue #734 · python/typing

X Title: Issue using Protocol as a base class with Python 3.5.2 · Issue #734 · python/typing

Description: Python: 3.5.2 OS: macOS Mojave Seems that _generic_new implementation from typing_extensions module is outdated or incorrect. When typing_extensions relies on its own implementation of _generic_new I get the following error. Script to re...

Open Graph Description: Python: 3.5.2 OS: macOS Mojave Seems that _generic_new implementation from typing_extensions module is outdated or incorrect. When typing_extensions relies on its own implementation of _generic_new...

X Description: Python: 3.5.2 OS: macOS Mojave Seems that _generic_new implementation from typing_extensions module is outdated or incorrect. When typing_extensions relies on its own implementation of _generic_new...

Opengraph URL: https://github.com/python/typing/issues/734

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue using Protocol as a base class with Python 3.5.2","articleBody":"Python: 3.5.2\r\nOS: macOS Mojave\r\n\r\nSeems that `_generic_new` implementation from `typing_extensions` module is outdated or incorrect. When `typing_extensions` relies on its own implementation of `_generic_new` I get the following error.\r\n\r\nScript to reproduce:\r\n```\r\nimport abc\r\nfrom typing_extensions import Protocol, runtime_checkable\r\n\r\n\r\n@runtime_checkable\r\nclass Proto(Protocol):\r\n    @abc.abstractmethod\r\n    def foo(self):\r\n        pass\r\n\r\n\r\nclass SomeClass(Proto):\r\n    def __init__(self, some_arg):\r\n        pass\r\n\r\n    def foo(self):\r\n        return 5\r\n\r\n\r\nx = SomeClass(3)\r\n```\r\n\r\nTraceback:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/Users/dikobraz/repro.py\", line 20, in \u003cmodule\u003e\r\n    x = SomeClass(3)\r\n  File \"/Users/dikobraz/env-py-3.5-tf-2/lib/python3.5/site-packages/typing_extensions.py\", line 1357, in __new__\r\n    return _generic_new(cls.__next_in_mro__, cls, *args, **kwds)\r\n  File \"/Users/dikobraz/env-py-3.5-tf-2/lib/python3.5/site-packages/typing_extensions.py\", line 87, in _generic_new\r\n    return base_cls.__new__(cls, *args, **kwargs)\r\nTypeError: object() takes no parameters\r\n```\r\n\r\nIn debugger:\r\n\u003cimg width=\"1035\" alt=\"Screen Shot 2020-06-23 at 6 47 37 PM\" src=\"https://user-images.githubusercontent.com/2404864/85487864-381caa00-b582-11ea-94d1-15b79656ad7e.png\"\u003e","author":{"url":"https://github.com/Slonegg","@type":"Person","name":"Slonegg"},"datePublished":"2020-06-24T01:47:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/734/typing/issues/734"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cbfbe701-7cd0-82f3-073c-06a7584b551b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA27E:A2022:23C880:32992D:6A4E682C
html-safe-noncecb5ea8b691f5a4a2cc99a616160257e2ce3ce461a63446bae417e238dd41dfa4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjdFOkEyMDIyOjIzQzg4MDozMjk5MkQ6NkE0RTY4MkMiLCJ2aXNpdG9yX2lkIjoiNDIwOTc4Nzc4ODM4MjMzMjk3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb46c622822abbb9a0a9cda4ae4db0b1c64c75198d71df0d9da7b2dbde8d06a32
hovercard-subject-tagissue:644256368
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/python/typing/734/issue_layout
twitter:imagehttps://opengraph.githubassets.com/57659a22d81e3d0fbddfd26abe5d645a7b752ccff5efa389a2489d723a3e86fa/python/typing/issues/734
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/57659a22d81e3d0fbddfd26abe5d645a7b752ccff5efa389a2489d723a3e86fa/python/typing/issues/734
og:image:altPython: 3.5.2 OS: macOS Mojave Seems that _generic_new implementation from typing_extensions module is outdated or incorrect. When typing_extensions relies on its own implementation of _generic_new...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSlonegg
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
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
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typing/issues/734#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F734
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fissues%2F734
Sign up https://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=python%2Ftyping
Reloadhttps://github.com/python/typing/issues/734
Reloadhttps://github.com/python/typing/issues/734
Reloadhttps://github.com/python/typing/issues/734
Please reload this pagehttps://github.com/python/typing/issues/734
python https://github.com/python
typinghttps://github.com/python/typing
Notifications https://github.com/login?return_to=%2Fpython%2Ftyping
Fork 303 https://github.com/login?return_to=%2Fpython%2Ftyping
Star 1.8k https://github.com/login?return_to=%2Fpython%2Ftyping
Code https://github.com/python/typing
Issues 203 https://github.com/python/typing/issues
Pull requests 30 https://github.com/python/typing/pulls
Discussions https://github.com/python/typing/discussions
Actions https://github.com/python/typing/actions
Security and quality 0 https://github.com/python/typing/security
Insights https://github.com/python/typing/pulse
Code https://github.com/python/typing
Issues https://github.com/python/typing/issues
Pull requests https://github.com/python/typing/pulls
Discussions https://github.com/python/typing/discussions
Actions https://github.com/python/typing/actions
Security and quality https://github.com/python/typing/security
Insights https://github.com/python/typing/pulse
Issue using Protocol as a base class with Python 3.5.2https://github.com/python/typing/issues/734#top
https://github.com/Slonegg
Slonegghttps://github.com/Slonegg
on Jun 24, 2020https://github.com/python/typing/issues/734#issue-644256368
https://user-images.githubusercontent.com/2404864/85487864-381caa00-b582-11ea-94d1-15b79656ad7e.png
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.