Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

begin refactoringValLineError collection#1517

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
davidhewitt wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromdh/collect-line-errors

Conversation

davidhewitt
Copy link
Contributor

Change Summary

Motivated by#1512.

Our error handling code is getting complicated at each callsite. This begins an attempt to refactor it to move repetition into common code, by adding a.collect_line_errors() helper to takeLineErrors and collect them up.

This only touches a few of themany code paths which collect line errors; they have a variety of different ways to build up locations. If we think we want to proceed with this, I'll follow up with further refactorings another day.

Related issue number

N/A

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with thispydantic-core (except for expected changes)
  • My PR is ready to review,please add a comment including the phrase "please review" to assign reviewers

@davidhewittdavidhewitt mentioned this pull requestNov 1, 2024
@codspeed-hqCodSpeed HQ
Copy link

CodSpeed Performance Report

Merging#1517 willnot alter performance

Comparingdh/collect-line-errors (3e5f948) withmain (89bdee1)

Summary

✅ 155 untouched benchmarks

@davidhewittdavidhewitt mentioned this pull requestDec 11, 2024
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@davidhewitt

[8]ページ先頭

©2009-2025 Movatter.jp