Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Deprecations

Open
#26 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

No target file or course section is named. Start by reviewing the Python 3.13 warnings.deprecated documentation, PEP 702, and the mypy command shown in the issue; done should be a clearly scoped course addition explaining deprecation warnings and checking the example.

Written by the indexing model from the issue text.

Description

Image

https://docs.python.org/3/library/warnings.html#warnings.deprecated
Added in version 3.13: See PEP 702.

from warnings import deprecated

@deprecated("Use the new way instead")
def the_old_way():
    print("God dag!")


def main():
    print("Hello from foo!")


if __name__ == "__main__":
    main()
    the_old_way()
$ uv run mypy main.py --enable-error-code=deprecated
main.py:15: error: function main.the_old_way is deprecated: Use the new way instead  [deprecated]
Found 1 error in 1 file (checked 1 source file)
Dominant language
Jupyter Notebook
Stars
8
Forks
1
Avg merge
4m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DHI/python-package-development

All issues in DHI/python-package-development

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.