Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type hints to all functions in cleanup-list script #62

Merged
merged 1 commit into from
May 22, 2023

Conversation

paulfrische
Copy link
Contributor

Hello there! I've added some type hints to the cleanup-list python script to make development easier. I plan on adding type hints to all functions in all python scripts in the repo(so I wouldn't merge yet).
Have a Great Day!

@@ -37,7 +38,8 @@ def parse_repo(dbpath):
pkgid = tarinfo.name
desc_tar = repodb.getmember(os.path.join(pkgid, "desc"))
desc_file = repodb.extractfile(desc_tar)
desc_file = io.TextIOWrapper(io.BytesIO(desc_file.read()), encoding="UTF-8")
desc_file = io.TextIOWrapper(io.BytesIO(
desc_file.read()), encoding="UTF-8")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the next PR, please leave out the line length changes. I know we don't have a set up any linting configuration however this PR is about typing not pep8 :)

@jelly jelly merged commit e414162 into archlinux:master May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants