Title: Generic LoggedVar example no longer works · Issue #732 · microsoft/python-language-server · GitHub
Open Graph Title: Generic LoggedVar example no longer works · Issue #732 · microsoft/python-language-server
X Title: Generic LoggedVar example no longer works · Issue #732 · microsoft/python-language-server
Description: v no longer has a type that makes sense: from typing import TypeVar, Generic from logging import Logger, getLogger T = TypeVar('T') class LoggedVar(Generic[T]): def __init__(self, value: T, name: str, logger: Logger) -> None: self.name =...
Open Graph Description: v no longer has a type that makes sense: from typing import TypeVar, Generic from logging import Logger, getLogger T = TypeVar('T') class LoggedVar(Generic[T]): def __init__(self, value: T, name: s...
X Description: v no longer has a type that makes sense: from typing import TypeVar, Generic from logging import Logger, getLogger T = TypeVar('T') class LoggedVar(Generic[T]): def __init__(self, value: T,...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/732
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generic LoggedVar example no longer works","articleBody":"`v` no longer has a type that makes sense:\r\n\r\n```python\r\nfrom typing import TypeVar, Generic\r\nfrom logging import Logger, getLogger\r\n\r\nT = TypeVar('T')\r\n\r\nclass LoggedVar(Generic[T]):\r\n def __init__(self, value: T, name: str, logger: Logger) -> None:\r\n self.name = name\r\n self.logger = logger\r\n self.value = value\r\n\r\n def set(self, new: T) -> None:\r\n self.log('Set ' + repr(self.value))\r\n self.value = new\r\n\r\n def get(self) -> T:\r\n self.log('Get ' + repr(self.value))\r\n return self.value\r\n\r\n def log(self, message: str) -> None:\r\n self.logger.info('%s: %s', self.name, message)\r\n\r\nv = LoggedVar(1234, \"name\", getLogger(\"oh_no\"))\r\nv.get()\r\n```\r\n\r\n\r\n\r\nWe regressed somewhere; I'll bisect it.","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2019-03-11T22:06:19Z","url":"https://github.com/microsoft/python-language-server/issues/732"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0ce8ba37-2151-7735-0a67-09cb7830a2d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E00:2ACFE7:34117F:448C0B:6AFE5F77 |
| html-safe-nonce | 6f9664970889992cf36dd8b943254c607215668f52e8125015b17d865f0e4842 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTAwOjJBQ0ZFNzozNDExN0Y6NDQ4QzBCOjZBRkU1Rjc3IiwidmlzaXRvcl9pZCI6IjU4MjA0MjQ1MDc0OTEyNDU5NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f2d9e70dd6f56c9a31bf95c710543952ff132deddecf34ab9033a32a9448c12d |
| hovercard-subject-tag | issue:419706360 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/732/issue_layout |
| twitter:image | https://opengraph.githubassets.com/19588eda730a1f4a2140a9992df3473406da75e506bfea97a86d1d4fee02267b/microsoft/python-language-server/issues/732 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19588eda730a1f4a2140a9992df3473406da75e506bfea97a86d1d4fee02267b/microsoft/python-language-server/issues/732 |
| og:image:alt | v no longer has a type that makes sense: from typing import TypeVar, Generic from logging import Logger, getLogger T = TypeVar('T') class LoggedVar(Generic[T]): def __init__(self, value: T, name: s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakebailey |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width