{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":32483713,"defaultBranch":"main","name":"pytype","ownerLogin":"google","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2015-03-18T20:52:08.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1342004?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1716908125.0","currentOid":""},"activityList":{"items":[{"before":null,"after":"e48b6e12ceaa81a3360bad74a0033995c43cf6af","ref":"refs/heads/cl/637898598","pushedAt":"2024-05-28T14:55:25.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 637898598","shortMessageHtmlLink":"No public description"}},{"before":"653360555bdef8a44481ee04b3b6bc5eee054dd3","after":"e7208d4aab18f7d58c65ad5f662f42a563b8ac04","ref":"refs/heads/main","pushedAt":"2024-05-28T14:53:04.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 637549468","shortMessageHtmlLink":"No public description"}},{"before":"6f27784c989707acb3f7148223ae696ef7c41e75","after":"653360555bdef8a44481ee04b3b6bc5eee054dd3","ref":"refs/heads/main","pushedAt":"2024-05-28T14:52:56.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 636643707","shortMessageHtmlLink":"No public description"}},{"before":"59514b08763335aa5907d332772fe9c545b719d6","after":"6f27784c989707acb3f7148223ae696ef7c41e75","ref":"refs/heads/main","pushedAt":"2024-05-28T14:52:45.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 633185951","shortMessageHtmlLink":"No public description"}},{"before":"a1abbe31739f57ff0eddb9b05a282c1ec0e0f62f","after":"59514b08763335aa5907d332772fe9c545b719d6","ref":"refs/heads/main","pushedAt":"2024-05-28T14:52:37.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 631784794","shortMessageHtmlLink":"No public description"}},{"before":"65552baea71d5e10d57a7c475cb8221fc590f932","after":"a1abbe31739f57ff0eddb9b05a282c1ec0e0f62f","ref":"refs/heads/main","pushedAt":"2024-05-28T14:52:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 628435487","shortMessageHtmlLink":"No public description"}},{"before":"b11488102e6ff176c631a92ed5705e9d0cce609a","after":"65552baea71d5e10d57a7c475cb8221fc590f932","ref":"refs/heads/main","pushedAt":"2024-05-28T14:52:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 627892423","shortMessageHtmlLink":"No public description"}},{"before":"b0d60d99a38ead598c87bdb03566799a1030c041","after":"b11488102e6ff176c631a92ed5705e9d0cce609a","ref":"refs/heads/main","pushedAt":"2024-05-28T14:52:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 627850941","shortMessageHtmlLink":"No public description"}},{"before":"41cadbc89a10e6a982bb522524b918720a0f207a","after":"b0d60d99a38ead598c87bdb03566799a1030c041","ref":"refs/heads/main","pushedAt":"2024-05-28T14:52:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 627842848","shortMessageHtmlLink":"No public description"}},{"before":"ebef9891d2fb5e46f5d92858d36548c4bba03229","after":"41cadbc89a10e6a982bb522524b918720a0f207a","ref":"refs/heads/main","pushedAt":"2024-05-28T14:52:01.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 627826265","shortMessageHtmlLink":"No public description"}},{"before":"6d751309fb46a05051aab50ecf96754be3ff796a","after":"ebef9891d2fb5e46f5d92858d36548c4bba03229","ref":"refs/heads/main","pushedAt":"2024-05-28T14:51:53.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 627826044","shortMessageHtmlLink":"No public description"}},{"before":"07e902ec393ce07e3934c2d1c3769a2c0fb9d299","after":"6d751309fb46a05051aab50ecf96754be3ff796a","ref":"refs/heads/main","pushedAt":"2024-05-28T14:51:42.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"copybara-service[bot]","name":null,"path":"/apps/copybara-service","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/44061?s=80&v=4"},"commit":{"message":"No public description\n\nPiperOrigin-RevId: 627810680","shortMessageHtmlLink":"No public description"}},{"before":"f8367314bcb46a87ecfaca512facf7e411370d74","after":"ad3ed0d6dd6629526d44b443b5f2dddfae798137","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:01:19.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"Fix type inference for `iter(func, None)`\n\nThere is already a general union declaration that should've eliminated `None` where applicable, but:\n\n1. For some reason the elimination doesn't work, so I had to just add a specific case for `None`. In the added test this is the `it2` case.\n\n2. Actually this type elimination would be incorrect to apply for any other type (that's not a singleton)! So remove this attempt and make it more in line with [typeshed's definition](https://github.com/python/typeshed/blo[]d6947479a7ba2cddc6b50d5600a941a84ca4d4/stdlib/builtins.pyi#L1396). In the added test, the `it3` case checks that the type is *not* eliminated.\n\n---\n\nWhile we're here, also make the parameters positional-only (which they really are):\n\n```pycon\n>>> iter(callable=1,sentinel=[1])\nTraceback (most recent call last):\n File \"\", line 1, in \nTypeError: iter() takes no keyword arguments\n```\n\nTested:\n [] train []\nPiperOrigin-RevId: 637549468","shortMessageHtmlLink":"Fix type inference for iter(func, None)"}},{"before":"cbf0e58aaf8ac182ff229ca81a20174843821329","after":"f8367314bcb46a87ecfaca512facf7e411370d74","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:01:10.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"Internal change\n\nStartblock:\nPiperOrigin-RevId: 636643707","shortMessageHtmlLink":"Internal change"}},{"before":"ba4cf1b9d15a2019adce32125a727d586d77a6b6","after":"cbf0e58aaf8ac182ff229ca81a20174843821329","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:00:58.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"Fix typo for the dummy filename.\n\nPiperOrigin-RevId: 633185951","shortMessageHtmlLink":"Fix typo for the dummy filename."}},{"before":"6b0cb735a6f1e76e6d3c9370530f21d9d815640d","after":"ba4cf1b9d15a2019adce32125a727d586d77a6b6","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:00:50.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"Change the variable name \"lineno\" into \"line\" to align more with the naming that python uses for these information, also pycnite does it this way.\n\nThis is a no-op change.\n\nPiperOrigin-RevId: 631784794","shortMessageHtmlLink":"Change the variable name \"lineno\" into \"line\" to align more with the …"}},{"before":"28438df582413436182d35b848f28ea49caaff72","after":"6b0cb735a6f1e76e6d3c9370530f21d9d815640d","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:00:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"Add exempt pathway for calls to import_module.\n\n--strict-import breaks these mid-execution imports even though they represent\nsystem behavior that should be excluded from this restriction.\n\nPiperOrigin-RevId: 628435487","shortMessageHtmlLink":"Add exempt pathway for calls to import_module."}},{"before":"a5d0865fe622dcdee74dbc492fb4b9f28fe988be","after":"28438df582413436182d35b848f28ea49caaff72","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:00:31.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"rewrite: add a class transformation mechanism to overlays.overlays.\n\nWith this, overlays that need to transform classes can simply write a\ntransformation function and register it via a decorator. It's a little\nless flexible than having complete control over the metaclass's __new__\nfunction, but it's a lot more convenient to work with (no need to pack the\narguments to __new__ into variables and then unpack them in the overlay), and\nwe can reuse the same transformation mechanism for imported classes.\n\nFor now, I've implemented just enough for EnumClassTransform to work. My next\nstep will be to tackle dataclasses and typing.dataclass_transform, which should\nhelp me figure out what other \"hooks\" we need for class transformation.\n\nPiperOrigin-RevId: 627892423","shortMessageHtmlLink":"rewrite: add a class transformation mechanism to overlays.overlays."}},{"before":"5ba038df95613d7ec8421af8467cb4e9fc7f6d47","after":"a5d0865fe622dcdee74dbc492fb4b9f28fe988be","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:00:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"Make GitHub CI happy.\n\n* Call super().__init__() in FunctionArgDict.\n* Implement byte_CALL_FUNCTION_KW.\n* Skip test in 3.8 that uses BUILD_TUPLE_UNPACK_WITH_CALL opcode.\n\nPiperOrigin-RevId: 627850941","shortMessageHtmlLink":"Make GitHub CI happy."}},{"before":"bf0a50b5f0ff3c428b2081eede70daf2adb7edc7","after":"5ba038df95613d7ec8421af8467cb4e9fc7f6d47","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:00:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"rewrite: Standardise on _Var as an alias for the variable type\n\nThis is an extremely common type in signatures, and _Var both saves valuable\nhorizontal space and is shorter to read.\n\nPiperOrigin-RevId: 627842848","shortMessageHtmlLink":"rewrite: Standardise on _Var as an alias for the variable type"}},{"before":"ee758724bb0c8f97fbc4d26856748073602e6dc2","after":"bf0a50b5f0ff3c428b2081eede70daf2adb7edc7","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T12:00:02.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"rewrite: fill out test coverage for the new enum overlay.\n\nPiperOrigin-RevId: 627826265","shortMessageHtmlLink":"rewrite: fill out test coverage for the new enum overlay."}},{"before":"dec18e72248c6c70937561705487c0636c6e9b24","after":"ee758724bb0c8f97fbc4d26856748073602e6dc2","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T11:59:52.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"Implement the basic framework for operators.\n\nResolves operators into method calls, with a dummy implementation for the\nactual call that just pushes an Any back on to the stack for binary_*, and the\nreceiver for inplace_*.\n\nPiperOrigin-RevId: 627826044","shortMessageHtmlLink":"Implement the basic framework for operators."}},{"before":"a2dc5add7efc82e28783dc1f76acab62eb857803","after":"dec18e72248c6c70937561705487c0636c6e9b24","ref":"refs/heads/google_sync","pushedAt":"2024-05-27T11:59:41.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"h-joo","name":"Hana Joo","path":"/h-joo","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/13726714?s=80&v=4"},"commit":{"message":"rewrite: Add a very basic implementation of EnumMeta.__new__.\n\nPiperOrigin-RevId: 627810680","shortMessageHtmlLink":"rewrite: Add a very basic implementation of EnumMeta.__new__."}},{"before":"e0924155333fdb20a92affd81210e1b697a89e0c","after":"07e902ec393ce07e3934c2d1c3769a2c0fb9d299","ref":"refs/heads/main","pushedAt":"2024-04-24T20:33:41.000Z","pushType":"pr_merge","commitsCount":23,"pusher":{"login":"rchen152","name":"Rebecca Chen","path":"/rchen152","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4142312?s=80&v=4"},"commit":{"message":"Merge pull request #1620 from google/google_sync\n\nGoogle sync","shortMessageHtmlLink":"Merge pull request #1620 from google/google_sync"}},{"before":"b5e788e6780edf33782f5d8d1ab9bd9bdff8956a","after":"a2dc5add7efc82e28783dc1f76acab62eb857803","ref":"refs/heads/google_sync","pushedAt":"2024-04-24T19:50:32.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"rchen152","name":"Rebecca Chen","path":"/rchen152","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4142312?s=80&v=4"},"commit":{"message":"Use macos-13 to work around bug in macos-latest.\n\nFor https://github.com/google/pytype/issues/1621.","shortMessageHtmlLink":"Use macos-13 to work around bug in macos-latest."}},{"before":"bd3b303097814ad3751a303555dfc3e6a331b780","after":"b5e788e6780edf33782f5d8d1ab9bd9bdff8956a","ref":"refs/heads/google_sync","pushedAt":"2024-04-24T19:08:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"rchen152","name":"Rebecca Chen","path":"/rchen152","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4142312?s=80&v=4"},"commit":{"message":"Skip test in 3.8 that uses BUILD_TUPLE_UNPACK_WITH_CALL opcode.","shortMessageHtmlLink":"Skip test in 3.8 that uses BUILD_TUPLE_UNPACK_WITH_CALL opcode."}},{"before":"5a3306bd29e02801255b94420c5f9121d4752cab","after":"bd3b303097814ad3751a303555dfc3e6a331b780","ref":"refs/heads/google_sync","pushedAt":"2024-04-24T17:54:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"rchen152","name":"Rebecca Chen","path":"/rchen152","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4142312?s=80&v=4"},"commit":{"message":"Implement byte_CALL_FUNCTION_KW.","shortMessageHtmlLink":"Implement byte_CALL_FUNCTION_KW."}},{"before":"592d4fa754ebc968e7ce92291619a3ebb526808f","after":"5a3306bd29e02801255b94420c5f9121d4752cab","ref":"refs/heads/google_sync","pushedAt":"2024-04-24T17:03:49.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"rchen152","name":"Rebecca Chen","path":"/rchen152","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4142312?s=80&v=4"},"commit":{"message":"Call super().__init__() in FunctionArgDict.","shortMessageHtmlLink":"Call super().__init__() in FunctionArgDict."}},{"before":"98fa177b26ec70237db29e1732e4fbe2fbd32666","after":"592d4fa754ebc968e7ce92291619a3ebb526808f","ref":"refs/heads/google_sync","pushedAt":"2024-04-24T16:52:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"rchen152","name":"Rebecca Chen","path":"/rchen152","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4142312?s=80&v=4"},"commit":{"message":"rewrite: simplify types related to function calls.\n\nRemoves the 'indefinite' attribute from abstract.Dict and adds it to\nabstract.FunctionArgTuple. This way, FunctionArgTuple and FunctionArgDict have\na fully consistent typing story, but the general Tuple and Dict representations\nare kept relatively simple.\n\nI reran ./rewrite/tests/run.sh, and this change has no effect on our\npass/fail/error numbers.\n\nPiperOrigin-RevId: 627558177","shortMessageHtmlLink":"rewrite: simplify types related to function calls."}},{"before":"3328c34ab980bfe04a9c9b041612306d2b894f12","after":"98fa177b26ec70237db29e1732e4fbe2fbd32666","ref":"refs/heads/google_sync","pushedAt":"2024-04-24T16:52:31.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"rchen152","name":"Rebecca Chen","path":"/rchen152","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4142312?s=80&v=4"},"commit":{"message":"Add ability to register overlay functions with the abstract converter.\n\nI started out by trying to implement overlays following our current design,\nwith an overlay module containing overlay members, but I realized that this\nquickly becomes a pain if you want to replace a method of a class (e.g., to get\nat EnumMeta.__new__, I need to create overlay objects for the enum module, the\nEnumMeta class, and finally the EnumMeta.__new__ method).\n\nHere's a potential alternative design that involves using decorators to\n\"register\" individual objects as overlays and having convert.py do overlay\nregistry lookups. Let me know what you think.\n\nPiperOrigin-RevId: 627541189","shortMessageHtmlLink":"Add ability to register overlay functions with the abstract converter."}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEVfwuxwA","startCursor":null,"endCursor":null}},"title":"Activity · google/pytype"}