Pierre Sassoulas

Results 62 issues of Pierre Sassoulas

### Bug description Consider the following file a.py ```python from typing import List def parse_dict(dict_object: List[dict], name: str) -> dict: for dict in dict_object: if dict.get("name") == name: return dict...

topic-typing
False Positive 🦟
Needs PR

In the following code the parser is mistaken for a logger and using parser.exception is suggested : ```python import argparse parser = argparse.ArgumentParser() parser.add_argument( "config_folder", help="Path to the project configuration...

Hello again :) The following code is not raising a `TC003` but I think it should: ```python import numpy as np def check_a_b(a: np.ndarray, b: np.ndarray) -> None: if len(a)...

bug
help wanted
hacktoberfest

Those two files have been deprecated in 2.7.0 and need to be removed in 3.0.0.

Maintenance

We could write a little script which compares mypy output on main with the commit in a PR. ### Context See discussion : https://github.com/PyCQA/astroid/pull/1353#issuecomment-1014425836

Maintenance

Following https://github.com/PyCQA/astroid/pull/1139, it's not possible to clear the cache. We did not use ``lru_cache`` because the current implementation only uses the first argument as key (because the other one is...

Enhancement ✨
topic-performance

Context: @tristanlatr opened issues lately after trying to replace ``ast`` by ``astroid`` in their project. And we're not experienced enough with astroid to decide if we should add [astroid's version...

Discussion 🤔

### Current behavior Most brain modules are actually for builtin functions and classes. Those should stay within astroid. For the external one, if they are simple it's certainly much easier...

Discussion 🤔

### Current behavior The current tests are using finally, and a lot of code to handle temporary file. Contributor try to follow the coding style and new code could be...

Maintenance

This permit to release on pypi if a value for ``PYPI_API_TOKEN`` is set in github settings. The release is done when a release is created/published in github interface. Relates to...