Skip to content
Snippets Groups Projects
  1. May 28, 2018
  2. May 26, 2018
    • Claudiu Popa's avatar
      Protect against passing lookup_class to non-class proxied objects · 25390386
      Claudiu Popa authored
      In some cases the _proxied object points to another Instance, not to the
      Class of an Instance node (usually this happens with enum and with our hardcoded inference support
      for this library). Instead of getting a TypeError, we check before if the _proxied matches
      what we expect.
      
      Found by #2080
      25390386
  3. May 24, 2018
  4. May 23, 2018
  5. May 22, 2018
  6. May 21, 2018
  7. May 20, 2018
  8. May 19, 2018
  9. May 17, 2018
  10. May 15, 2018
    • Mario Corchero's avatar
      Fix import of symlinks outside of path with modutils (#546) · cd76b495
      Mario Corchero authored
      Makes load_module_from_file able to import files within the path that
      are just a symlink to a file outside of the path.
      modutils is using realpath at the moment which will resolve the symlink
      and don't allow the import as the file is detected outside of the
      available paths. By checking both abspath and realpath this patches add
      support for such scenarios.
      cd76b495
  11. May 14, 2018
  12. May 13, 2018
  13. May 07, 2018
  14. May 05, 2018
    • Ashley Whetter's avatar
      Fix lint errors · 023dfc52
      Ashley Whetter authored
      023dfc52
    • Ashley Whetter's avatar
      Corrected child order · 228e34db
      Ashley Whetter authored
      52e67656 introduced a new type of
      child iteration.
      Some classes started yielding children in the incorrect order,
      which was causing test failures in pylint.
      This change corrects the ordering to match the _astroid_fields
      of the class.
      
      Relates to a change from #497
      228e34db
  15. Apr 25, 2018
  16. Apr 24, 2018
    • HoverHell's avatar
      Fix StopIteration raising for python3.7 (#534) · ceeee097
      HoverHell authored
      Because we don't support Python 2 any longer in the master branch, we can
      return values from generators to signal that we want to throw a StopIteration,
      without actually raising the StopIteration itself.
      ceeee097
  17. Apr 19, 2018
    • Bryce Guinta's avatar
      Add qname method to Super objects · 8575ac1c
      Bryce Guinta authored
      Super objects in python have a __qualname__ attribute
      so super nodes should have an equivalent qname method.
      
      Prevents an error in upstream pylint
      
      Close #533
      8575ac1c
  18. Apr 12, 2018
  19. Apr 05, 2018
  20. Apr 03, 2018
  21. Apr 02, 2018
  22. Mar 31, 2018
  23. Mar 30, 2018
    • Claudiu Popa's avatar
    • Claudiu Popa's avatar
      Module.__path__ is now a list · 7f46f934
      Claudiu Popa authored
      It used to be a string containing the path, but it doesn't reflect the situation
      on Python, where it is actually a list.
      Also fix a bug with namespace package's __path__ attribute, which wasn't using the
      module's __path__, but its file attribute, which is None for namespace packages.
      
      Close #528
      7f46f934
    • Nick Drozd's avatar
      Add MultiLineBlockMixin · 75b6c1a3
      Nick Drozd authored
      `_multi_line_block_fields` is a list of strings indicating which
      fields contain multi-line blocks. `_get_multi_line_blocks` dynamically
      accesses these attributes the first time it is called and then caches
      the resulting references so as to avoid repeated expensive attribute
      lookups.
      75b6c1a3
    • Nick Drozd's avatar
      Improve _get_yield_nodes_skip_lambdas algorithm · e2a9c4e9
      Nick Drozd authored
      Yield statements can only appear in multiline bodies (like function
      definitions) and in lambdas, so there is no need to check other nodes
      for them.
      e2a9c4e9
Loading