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 main APIs #264

Merged
merged 22 commits into from
Nov 13, 2024
Merged

Add type hints to main APIs #264

merged 22 commits into from
Nov 13, 2024

Conversation

joseph-pq
Copy link
Contributor

Related Issues

#263

Changes

Added typehints to files:

  • edfreader.py
  • edfwriter.py
  • highleve.py

Also, I added a py.typed file for being recognizable for mypy and a _pyedflib.pyi as a python interface for the _pyedflib.pyc.

pyedflib/highlevel.py Outdated Show resolved Hide resolved
pyedflib/highlevel.py Outdated Show resolved Hide resolved
pyedflib/highlevel.py Outdated Show resolved Hide resolved
pyedflib/highlevel.py Outdated Show resolved Hide resolved
pyedflib/highlevel.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfwriter.py Outdated Show resolved Hide resolved
pyedflib/edfreader.py Outdated Show resolved Hide resolved
pyedflib/edfreader.py Outdated Show resolved Hide resolved
pyedflib/edfreader.py Outdated Show resolved Hide resolved
pyedflib/edfreader.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@skjerns skjerns left a comment

Choose a reason for hiding this comment

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

Thanks! looking good :) if you implement the changes, I will merge

Copy link
Contributor Author

@joseph-pq joseph-pq left a comment

Choose a reason for hiding this comment

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

@skjerns I accepted most of the suggestions. I responded to the rest.

@skjerns
Copy link
Collaborator

skjerns commented Nov 13, 2024

@joseph-pq there seems to be a syntax error, could you check?

@skjerns
Copy link
Collaborator

skjerns commented Nov 13, 2024

@holgern could you enable squash and merge as the default for the repo settings?

image

@skjerns skjerns merged commit ea9ee94 into holgern:master Nov 13, 2024
32 checks passed
@skjerns
Copy link
Collaborator

skjerns commented Nov 13, 2024

thanks to @joseph-pq for the great PR, will merge

@joseph-pq joseph-pq deleted the typehints branch November 13, 2024 14:01
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.

2 participants