{"id":13592230,"url":"https://github.com/ebeweber/flake8-mutable","last_synced_at":"2025-10-21T19:41:28.469Z","repository":{"id":57429977,"uuid":"58516778","full_name":"ebeweber/flake8-mutable","owner":"ebeweber","description":"flake8 extension for mutable default arguments","archived":false,"fork":false,"pushed_at":"2020-06-29T15:16:55.000Z","size":13,"stargazers_count":44,"open_issues_count":14,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-27T04:29:02.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/flake8-mutable","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ebeweber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-11T05:31:39.000Z","updated_at":"2024-09-09T06:21:34.000Z","dependencies_parsed_at":"2022-08-26T02:41:19.488Z","dependency_job_id":null,"html_url":"https://github.com/ebeweber/flake8-mutable","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebeweber%2Fflake8-mutable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebeweber%2Fflake8-mutable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebeweber%2Fflake8-mutable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebeweber%2Fflake8-mutable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ebeweber","download_url":"https://codeload.github.com/ebeweber/flake8-mutable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223346575,"owners_count":17130463,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T16:01:07.165Z","updated_at":"2025-10-21T19:41:23.443Z","avatar_url":"https://github.com/ebeweber.png","language":"Python","readme":"flake8-mutable\n--------------\n\n[![PyPI version](https://img.shields.io/pypi/v/flake8-mutable.svg)](https://pypi.python.org/pypi/flake8-mutable)\n\n#### Motivation\n\nPython's default arguments are evaluated at definition as opposed to when the function is invoked. This leads to unexpected behavior, as mutations persist between calls. For a more detailed explanation, see [The Hitchhiker's Guide to Python](http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments).\n\n#### Example\n\n```\ndef fnc(a, b={}):\n    pass\n\nfoo.py:2:14: M511 - mutable default arg of type Dict\n```\n\n#### Installation\n\n```\npip install flake8-mutable\n```\n\n#### Changes\n\n##### [1.1.0] 2016-11-26\n- Callables\n\n##### [1.0.6] 2016-11-26\n- added MANIFEST.in\n\n#### License\n\n[MIT](https://opensource.org/licenses/MIT)\n","funding_links":[],"categories":["Topics Index","Bugs","Python"],"sub_categories":["Code Quality and Linting"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febeweber%2Fflake8-mutable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febeweber%2Fflake8-mutable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febeweber%2Fflake8-mutable/lists"}