{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":424570799,"defaultBranch":"main","name":"flake8","ownerLogin":"stephenfin","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2021-11-04T11:31:01.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1690835?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1722812250.0","currentOid":""},"activityList":{"items":[{"before":"bdcd5c2c0afadaf7c92a4b26d96055cecdd38cf3","after":null,"ref":"refs/heads/issue-1948","pushedAt":"2024-08-04T22:57:30.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"stephenfin","name":"Stephen Finucane","path":"/stephenfin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1690835?s=80&v=4"}},{"before":"f721f24dcbfb635218149aec3004c4b8d8e0f8e6","after":"bdcd5c2c0afadaf7c92a4b26d96055cecdd38cf3","ref":"refs/heads/issue-1948","pushedAt":"2024-08-04T19:54:28.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"asottile","name":"Anthony Sottile","path":"/asottile","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1810591?s=80&v=4"},"commit":{"message":"Handle escaped braces in f-strings\n\nTo use a curly brace in an f-string, you must escape it. For example:\n\n >>> k = 1\n >>> f'{{{k}'\n '{1'\n\nSaving this as a script and running the 'tokenize' module highlights\nsomething odd around the counting of tokens:\n\n ❯ python -m tokenize wow.py\n 0,0-0,0: ENCODING 'utf-8'\n 1,0-1,1: NAME 'k'\n 1,2-1,3: OP '='\n 1,4-1,5: NUMBER '1'\n 1,5-1,6: NEWLINE '\\n'\n 2,0-2,2: FSTRING_START \"f'\"\n 2,2-2,3: FSTRING_MIDDLE '{' # <-- here...\n 2,4-2,5: OP '{' # <-- and here\n 2,5-2,6: NAME 'k'\n 2,6-2,7: OP '}'\n 2,7-2,8: FSTRING_END \"'\"\n 2,8-2,9: NEWLINE '\\n'\n 3,0-3,0: ENDMARKER ''\n\nThe FSTRING_MIDDLE character we have is the escaped/post-parse single\ncurly brace rather than the raw double curly brace, however, while our\nend index of this token accounts for the parsed form, the start index of\nthe next token does not (put another way, it jumps from 3 -> 4). This\ntriggers some existing, unrelated code that we need to bypass. Do just\nthat.\n\nSigned-off-by: Stephen Finucane \nCloses: #1948","shortMessageHtmlLink":"Handle escaped braces in f-strings"}},{"before":"d19241bbb390bd7d8bcc2c696445855f8a279b68","after":"f721f24dcbfb635218149aec3004c4b8d8e0f8e6","ref":"refs/heads/issue-1948","pushedAt":"2024-08-02T08:15:09.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"stephenfin","name":"Stephen Finucane","path":"/stephenfin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1690835?s=80&v=4"},"commit":{"message":"Handle escaped braces in f-strings\n\nTo use a curly brace in an f-string, you must escape it. For example:\n\n >>> k = 1\n >>> f'{{{k}'\n '{1'\n\nSaving this as a script and running the 'tokenize' module highlights\nsomething odd around the counting of tokens:\n\n ❯ python -m tokenize wow.py\n 0,0-0,0: ENCODING 'utf-8'\n 1,0-1,1: NAME 'k'\n 1,2-1,3: OP '='\n 1,4-1,5: NUMBER '1'\n 1,5-1,6: NEWLINE '\\n'\n 2,0-2,2: FSTRING_START \"f'\"\n 2,2-2,3: FSTRING_MIDDLE '{' # <-- here...\n 2,4-2,5: OP '{' # <-- and here\n 2,5-2,6: NAME 'k'\n 2,6-2,7: OP '}'\n 2,7-2,8: FSTRING_END \"'\"\n 2,8-2,9: NEWLINE '\\n'\n 3,0-3,0: ENDMARKER ''\n\nThe FSTRING_MIDDLE character we have is the escaped/post-parse single\ncurly brace rather than the raw double curly brace, however, while our\nend index of this token accounts for the parsed form, the start index of\nthe next token does not (put another way, it jumps from 3 -> 4). This\ntriggers some existing, unrelated code that we need to bypass. Do just\nthat.\n\nSigned-off-by: Stephen Finucane \nCloses: #1948","shortMessageHtmlLink":"Handle escaped braces in f-strings"}},{"before":"949cbbfb31d3ec64debf8903e3cd71b14edaf934","after":"d19241bbb390bd7d8bcc2c696445855f8a279b68","ref":"refs/heads/issue-1948","pushedAt":"2024-08-01T11:19:51.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"stephenfin","name":"Stephen Finucane","path":"/stephenfin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1690835?s=80&v=4"},"commit":{"message":"Handle escaped braces in f-strings\n\nTo use a curly brace in an f-string, you must escape it. For example:\n\n >>> k = 1\n >>> f'{{{k}'\n '{1'\n\nSaving this as a script and running the 'tokenize' module highlights\nsomething odd around the counting of tokens:\n\n ❯ python -m tokenize wow.py\n 0,0-0,0: ENCODING 'utf-8'\n 1,0-1,1: NAME 'k'\n 1,2-1,3: OP '='\n 1,4-1,5: NUMBER '1'\n 1,5-1,6: NEWLINE '\\n'\n 2,0-2,2: FSTRING_START \"f'\"\n 2,2-2,3: FSTRING_MIDDLE '{' # <-- here...\n 2,4-2,5: OP '{' # <-- and here\n 2,5-2,6: NAME 'k'\n 2,6-2,7: OP '}'\n 2,7-2,8: FSTRING_END \"'\"\n 2,8-2,9: NEWLINE '\\n'\n 3,0-3,0: ENDMARKER ''\n\nThe FSTRING_MIDDLE character we have is the escaped/post-parse single\ncurly brace rather than the raw double curly brace, however, while our\nend index of this token accounts for the parsed form, the start index of\nthe next token does not (put another way, it jumps from 3 -> 4). This\ntriggers some existing, unrelated code that we need to bypass. Do just\nthat.\n\nSigned-off-by: Stephen Finucane \nCloses: #1948","shortMessageHtmlLink":"Handle escaped braces in f-strings"}},{"before":"742fd5a224cb2a384fc44fd12d3f6f3ece514b6c","after":"949cbbfb31d3ec64debf8903e3cd71b14edaf934","ref":"refs/heads/issue-1948","pushedAt":"2024-08-01T11:16:01.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"stephenfin","name":"Stephen Finucane","path":"/stephenfin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1690835?s=80&v=4"},"commit":{"message":"Handle escaped braces in f-strings\n\nTo use a curly brace in an f-string, you must escape it. For example:\n\n >>> k = 1\n >>> f'{{{k}'\n '{1'\n\nSaving this as a script and running the 'tokenize' module higlights\nsomething odd around our counting:\n\n ❯ python -m tokenize wow.py\n 0,0-0,0: ENCODING 'utf-8'\n 1,0-1,1: NAME 'k'\n 1,2-1,3: OP '='\n 1,4-1,5: NUMBER '1'\n 1,5-1,6: NEWLINE '\\n'\n 2,0-2,2: FSTRING_START \"f'\"\n 2,2-2,3: FSTRING_MIDDLE '{' # <-- here...\n 2,4-2,5: OP '{' # <-- and here\n 2,5-2,6: NAME 'k'\n 2,6-2,7: OP '}'\n 2,7-2,8: FSTRING_END \"'\"\n 2,8-2,9: NEWLINE '\\n'\n 3,0-3,0: ENDMARKER ''\n\nThe FSTRING_MIDDLE character we have is the escaped/post-parse single\ncurly brace rather than the raw double curly brace, however, while our\nend index of this token accounts for the parsed form, the start index of\nthe next token does not (put another way, it jumps from 3 -> 4). This\ntriggers some existing, unrelated code that we need to bypass. Do just\nthat.\n\nSigned-off-by: Stephen Finucane \nCloses: #1948","shortMessageHtmlLink":"Handle escaped braces in f-strings"}},{"before":"5804a09edecd63eee39941a12cc9b43a4a664675","after":"742fd5a224cb2a384fc44fd12d3f6f3ece514b6c","ref":"refs/heads/issue-1948","pushedAt":"2024-08-01T11:14:09.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"stephenfin","name":"Stephen Finucane","path":"/stephenfin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1690835?s=80&v=4"},"commit":{"message":"Handle escaped braces in f-strings\n\nTo use a curly brace in an f-string, you must escape it. For example:\n\n >>> k = 1\n >>> f'{{{k}'\n '{1'\n\nSaving this as a script and running the 'tokenize' module higlights\nsomething odd around our counting:\n\n ❯ python -m tokenize wow.py\n 0,0-0,0: ENCODING 'utf-8'\n 1,0-1,1: NAME 'k'\n 1,2-1,3: OP '='\n 1,4-1,5: NUMBER '1'\n 1,5-1,6: NEWLINE '\\n'\n 2,0-2,2: FSTRING_START \"f'\"\n 2,2-2,3: FSTRING_MIDDLE '{' # <-- here...\n 2,4-2,5: OP '{' # <-- and here\n 2,5-2,6: NAME 'k'\n 2,6-2,7: OP '}'\n 2,7-2,8: FSTRING_END \"'\"\n 2,8-2,9: NEWLINE '\\n'\n 3,0-3,0: ENDMARKER ''\n\nThe FSTRING_MIDDLE character we have is the escaped/post-parse single\ncurly brace rather than the raw double curly brace, however, while our\nend index of this token accounts for the parsed form, the start index of\nthe next token does not (put another way, it jumps from 3 -> 4). This\ntriggers some existing, unrelated code that we need to bypass. Do just\nthat.\n\nSigned-off-by: Stephen Finucane \nCloses: #1948","shortMessageHtmlLink":"Handle escaped braces in f-strings"}},{"before":null,"after":"5804a09edecd63eee39941a12cc9b43a4a664675","ref":"refs/heads/issue-1948","pushedAt":"2024-08-01T11:11:42.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"stephenfin","name":"Stephen Finucane","path":"/stephenfin","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1690835?s=80&v=4"},"commit":{"message":"Resolve #1948\n\nTo use a curly brace in an f-string, you must escape it. For example:\n\n >>> k = 1\n >>> f'{{{k}'\n '{1'\n\nSaving this as a script and running the 'tokenize' module higlights\nsomething odd around our counting:\n\n ❯ python -m tokenize wow.py\n 0,0-0,0: ENCODING 'utf-8'\n 1,0-1,1: NAME 'k'\n 1,2-1,3: OP '='\n 1,4-1,5: NUMBER '1'\n 1,5-1,6: NEWLINE '\\n'\n 2,0-2,2: FSTRING_START \"f'\"\n 2,2-2,3: FSTRING_MIDDLE '{' # <-- here...\n 2,4-2,5: OP '{' # <-- and here\n 2,5-2,6: NAME 'k'\n 2,6-2,7: OP '}'\n 2,7-2,8: FSTRING_END \"'\"\n 2,8-2,9: NEWLINE '\\n'\n 3,0-3,0: ENDMARKER ''\n\nThe FSTRING_MIDDLE character we have is the escaped/post-parse single\ncurly brace rather than the raw double curly brace, however, while our\nend index of this token accounts for the parsed form, the start index of\nthe next token does not (put another way, it jumps from 3 -> 4). This\ntriggers some existing, unrelated code that we need to bypass. Do just\nthat.\n\nSigned-off-by: Stephen Finucane ","shortMessageHtmlLink":"Resolve PyCQA#1948"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEkX9KLAA","startCursor":null,"endCursor":null}},"title":"Activity · stephenfin/flake8"}