Title: pytype is failing for standard `pkgutil.extend_path` usage · Issue #186 · googleapis/python-api-core · GitHub
Open Graph Title: pytype is failing for standard `pkgutil.extend_path` usage · Issue #186 · googleapis/python-api-core
X Title: pytype is failing for standard `pkgutil.extend_path` usage · Issue #186 · googleapis/python-api-core
Description: From this Kokoro failure (there are lots): nox > Running session pytype nox > Creating virtual environment (virtualenv) using python3.6 in .nox/pytype nox > python -m pip install . grpcio >= 1.8.2 grpcio-gcp >= 0.2.2 pytype >= 2019.3.21 ...
Open Graph Description: From this Kokoro failure (there are lots): nox > Running session pytype nox > Creating virtual environment (virtualenv) using python3.6 in .nox/pytype nox > python -m pip install . grpcio >= 1.8.2 ...
X Description: From this Kokoro failure (there are lots): nox > Running session pytype nox > Creating virtual environment (virtualenv) using python3.6 in .nox/pytype nox > python -m pip install . grpcio ...
Opengraph URL: https://github.com/googleapis/python-api-core/issues/186
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pytype is failing for standard `pkgutil.extend_path` usage","articleBody":"From [this Kokoro failure](https://source.cloud.google.com/results/invocations/c887f16f-87c2-4dcc-acb3-a067d0c4685c/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-api-core%2Fpresubmit%2Fpresubmit/log) (there are lots):\r\n\r\n```\\\r\nnox \u003e Running session pytype\r\nnox \u003e Creating virtual environment (virtualenv) using python3.6 in .nox/pytype\r\nnox \u003e python -m pip install . grpcio \u003e= 1.8.2 grpcio-gcp \u003e= 0.2.2 pytype \u003e= 2019.3.21\r\nnox \u003e pytype\r\nComputing dependencies\r\nAnalyzing 37 sources with 0 local dependencies\r\nninja: Entering directory `.pytype'\r\n[1/37] check google.api_core.gapic_v1.routing_header\r\n[2/37] check google.api_core.datetime_helpers\r\n[3/37] check google.api_core.exceptions\r\n[4/37] check google.api_core.general_helpers\r\n[5/37] check google.api_core.timeout\r\n[6/37] check google.api_core.retry\r\n[7/37] check google.api_core.retry_async\r\n[8/37] check google.api_core.version\r\n[9/37] check google.api_core.gapic_v1.config\r\n[10/37] check google.api_core.gapic_v1.config_async\r\n[11/37] check google.api_core.grpc_helpers\r\n[12/37] check google.api_core.grpc_helpers_async\r\n[13/37] check google.api_core.client_info\r\n[14/37] check google.api_core.gapic_v1.client_info\r\n[15/37] check google.api_core.gapic_v1.method\r\n[16/37] check google.api_core.gapic_v1.method_async\r\n[17/37] check google.api_core.gapic_v1.__init__\r\n[18/37] check google.api_core.protobuf_helpers\r\n[19/37] check google.api_core.operations_v1.operations_client_config\r\n[20/37] check google.api_core.page_iterator\r\n[21/37] check google.api_core.operations_v1.operations_client\r\n[22/37] check google.api_core.page_iterator_async\r\n[23/37] check google.api_core.operations_v1.operations_async_client\r\n[24/37] check google.api_core.operations_v1.__init__\r\n[25/37] check google.api_core.future.base\r\n[26/37] check google.api_core.future.async_future\r\n[27/37] check google.api_core.operation_async\r\n[28/37] check google.api_core.future._helpers\r\n[29/37] check google.api_core.iam\r\n[30/37] check google.api_core.future.polling\r\n[31/37] check google.api_core.operation\r\n[32/37] check google.__init__\r\nFAILED: /tmpfs/src/github/python-api-core/.pytype/pyi/google/__init__.pyi\r\n/tmpfs/src/github/python-api-core/.nox/pytype/bin/python -m pytype.single --disable pyi-error --imports_info /tmpfs/src/github/python-api-core/.pytype/imports/google.__init__.imports --module-name google.__init__ -V 3.6 -o /tmpfs/src/github/python-api-core/.pytype/pyi/google/__init__.pyi --analyze-annotated --nofail --quick /tmpfs/src/github/python-api-core/google/__init__.py\r\nFile \"/tmpfs/src/github/python-api-core/google/__init__.py\", line 24, in \u003cmodule\u003e: Function pkgutil.extend_path was called with the wrong arguments [wrong-arg-types]\r\n Expected: (path: List[str], ...)\r\n Actually passed: (path: Iterable[str], ...)\r\n\r\nFor more details, see https://google.github.io/pytype/errors.html#wrong-arg-types\r\nninja: build stopped: subcommand failed.\r\nLeaving directory '.pytype'\r\nnox \u003e Command pytype failed with exit code 1\r\nnox \u003e Session pytype failed.\r\n```\r\n\r\nI suspect we should upgrade to a newer version of `pytype` -- the [current release](https://github.com/google/pytype/releases/tag/2021.05.11) is more than two years newer than the one we are using, and e.g. supports Python 3.9.","author":{"url":"https://github.com/tseaver","@type":"Person","name":"tseaver"},"datePublished":"2021-05-13T16:53:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/186/python-api-core/issues/186"}
| 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:9d956b3a-c59b-567d-3dca-9a952de6140b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0CA:2338AF:11A27D:19D262:6A4E2128 |
| html-safe-nonce | 8cef54201221890bafaff48e794da878da6c752a467a702496a653f04b2c492d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMENBOjIzMzhBRjoxMUEyN0Q6MTlEMjYyOjZBNEUyMTI4IiwidmlzaXRvcl9pZCI6IjkyMTk4ODg5MTQ2NTA1MDU1MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2beb7d0c91e9b33f0ee9b33eb9bc798292d0ba03d27be69b9d99824fb64cab70 |
| hovercard-subject-tag | issue:891202906 |
| 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/googleapis/python-api-core/186/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31bf9e75c7bb7b51d8a63b44b0969aa2a72b443ff860937f85d831840553b3ed/googleapis/python-api-core/issues/186 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31bf9e75c7bb7b51d8a63b44b0969aa2a72b443ff860937f85d831840553b3ed/googleapis/python-api-core/issues/186 |
| og:image:alt | From this Kokoro failure (there are lots): nox > Running session pytype nox > Creating virtual environment (virtualenv) using python3.6 in .nox/pytype nox > python -m pip install . grpcio >= 1.8.2 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tseaver |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992456 |
| octolytics-dimension-repository_nwo | googleapis/python-api-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992456 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-api-core |
| 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 | 5fe497b4815fcce3df76c0e246faa739a82c3124 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width