gpt4 book ai didi

python - 运行 flake8 时出错

转载 作者:行者123 更新时间:2023-12-03 17:32:11 26 4
gpt4 key购买 nike

我最近尝试为 Python3 安装 Flake8,从那时起我收到以下错误消息:

/Users/dorsam/.atom/packages/linter/lib/linter-registry.js:159 [Linter] Error running Flake8 Error: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pycodestyle.py:113: FutureWarning: Possible nested set at position 1
EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
at ChildProcess.<anonymous> (/Users/dorsam/.atom/packages/linter-flake8/node_modules/sb-exec/lib/index.js:56:20)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)

最佳答案

看这里:https://docs.python.org/3/library/re.html

Support of nested sets and set operations as in Unicode Technical Standard #18 might be added in the future. This would change the syntax, so to facilitate this change a FutureWarning will be raised in ambiguous cases for the time being. That includes sets starting with a literal '[' or containing literal character sequences '--', '&&', '~~', and '||'. To avoid a warning escape them with a backslash.

关于python - 运行 flake8 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51762025/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com