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

Fix conflict from #25 in v0.0.1-packaging #28

Merged
merged 5 commits into from
Jul 25, 2023

Conversation

EliahKagan
Copy link
Collaborator

@EliahKagan EliahKagan commented Jul 25, 2023

This is a request to merge commits into the v0.0.1-packaging feature branch, not into main.

I noticed that the changes I made in #25 caused main and v0.0.1-packaging to diverge, such that a nontrivial merge conflict would arise on v0.0.1-packaging. Merging this pull request into the v0.0.1-packaging branch will resolve that conflict, preserving both changes. This pull request supplies a merge commit, d7633f8, in which the conflicts are resolved. I have tested this code.

The purpose of this pull request is to prevent my changes in #25 from delaying #24 unnecessarily or causing extra work for @zbloss (who has been working on #24 in v0.0.1-packaging). Therefore, my suggestion is that that this pull request should only be merged by, or after review from, @zbloss.

@zbloss: I hope you find this useful, but I understand that pull requests against feature branches are somewhat unusual and not part of everyone's preferred workflow. (Likewise, it is possible that you have already resolved this conflict locally even as I am making his PR, etc.) Please feel free to close this pull request if you decide, for any reason, that you don't want to merge it into your branch.

EliahKagan and others added 5 commits July 25, 2023 01:44
Important changes:

- A number of the type hints on function/method parameters were
  incorrect (producing errors detected statically by mypy, or by
  temporarily instrumenting the code at runtime with typeguard).
  This fixes most of those.

- A few names of attributes and function parameters were renamed in
  one place but not another. The affected function parameters,
  which were mostly on local helper functions, were unintentionally
  unused, while their old now-unbound names were still referenced.
  This went undetected because it was on code paths that weren't
  often exercised. This fixes most (maybe all) cases of that.

More minor changes (only made in code already being changed):

- This adds a few more type hints in places where it is simple to
  do so and improves consistency, and in some places where type
  checkers like mypy consider it an error for them to be absent.

- In some cases, the incorrect type annotations or incomplete
  renames appear to have arisen in part due to parameter names with
  non-obvious meanings, or that vary in meaning across code that
  otherwise appeared similar. In places where that looks like that
  may have been the case, this renames them accordingly.
This specifies the latest versions compatible with Python 3.7 of
each of the packages listed in requirements.txt. It adds torchdata,
which was needed (and not always automatically installed) at least
on Python 3.7 (and does not break later versions). It removes
tornado, which does not appear to be required.
Fix some incorrect type hints and incomplete renames
@EliahKagan EliahKagan requested a review from zbloss July 25, 2023 06:42
Copy link
Collaborator

@zbloss zbloss left a comment

Choose a reason for hiding this comment

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

Looks good to me

@zbloss
Copy link
Collaborator

zbloss commented Jul 25, 2023

I'm going to approve and merge so we keep the changes consistent.

Refactoring this into a package is a sizeable change but having the appropriate type hints will be helpful. Thanks for the PR!

@zbloss zbloss merged commit e8628cf into bazingagin:v0.0.1-packaging Jul 25, 2023
@EliahKagan EliahKagan mentioned this pull request Jul 31, 2023
@EliahKagan EliahKagan deleted the fix-conflict-packaging branch August 1, 2023 03:19
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