Giter Site home page Giter Site logo

Comments (4)

ambv avatar ambv commented on August 15, 2024

Thanks for the report!

from flake8-bugbear.

advance512 avatar advance512 commented on August 15, 2024

Great. I've just faced the same issue (I think):

Process Process-2:
Traceback (most recent call last):
  File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
    self.run()
  File "/usr/lib/python3.5/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/flake8/checker.py", line 666, in _run_checks_from_queue
    checker.run_checks(results_queue, statistics_queue)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/flake8/checker.py", line 606, in run_checks
    self.run_ast_checks()
  File "/home/user/proj/.venv/lib/python3.5/site-packages/flake8/checker.py", line 517, in run_ast_checks
    for (line_number, offset, text, check) in runner:
  File "/home/user/proj/.venv/lib/python3.5/site-packages/bugbear.py", line 32, in run
    visitor.visit(self.tree)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/bugbear.py", line 96, in visit
    super().visit(node)
  File "/usr/lib/python3.5/ast.py", line 245, in visit
    return visitor(node)
  File "/usr/lib/python3.5/ast.py", line 253, in generic_visit
    self.visit(item)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/bugbear.py", line 96, in visit
    super().visit(node)
  File "/usr/lib/python3.5/ast.py", line 245, in visit
    return visitor(node)
  File "/usr/lib/python3.5/ast.py", line 253, in generic_visit
    self.visit(item)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/bugbear.py", line 96, in visit
    super().visit(node)
  File "/usr/lib/python3.5/ast.py", line 245, in visit
    return visitor(node)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/bugbear.py", line 210, in visit_FunctionDef
    self.generic_visit(node)
  File "/usr/lib/python3.5/ast.py", line 253, in generic_visit
    self.visit(item)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/bugbear.py", line 96, in visit
    super().visit(node)
  File "/usr/lib/python3.5/ast.py", line 245, in visit
    return visitor(node)
  File "/usr/lib/python3.5/ast.py", line 253, in generic_visit
    self.visit(item)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/bugbear.py", line 96, in visit
    super().visit(node)
  File "/usr/lib/python3.5/ast.py", line 245, in visit
    return visitor(node)
  File "/home/user/proj/.venv/lib/python3.5/site-packages/bugbear.py", line 173, in visit_For
    if not node.target.id.startswith('_'):
AttributeError: 'Tuple' object has no attribute 'id'

Please update when you push fix to PyPi.

from flake8-bugbear.

ambv avatar ambv commented on August 15, 2024

16.12.1 just released.

from flake8-bugbear.

jaap3 avatar jaap3 commented on August 15, 2024

Thank you for the quick follow up and release!

from flake8-bugbear.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.