Alex Couper

Results 5 issues of Alex Couper

The redirection of stdout and stderr in the flake8 checker is not working as expected. ``` with change_folder(temp_folder): flake8_style = get_style_guide(config_file=DEFAULT_CONFIG) out, err = StringIO(), StringIO() with redirected(out, err): flake8_style.check_files(py_files)...

``` git commit -a Traceback (most recent call last): File ".git/hooks/pre-commit", line 127, in exit_code = main(commit_only=not args.all) File ".git/hooks/pre-commit", line 96, in main for name, mod in checks(): File...

It would appear that we both started work on the same idea at around the same time. (See https://github.com/alexcouper/captainhook) Perhaps it would be more beneficial to the wider Python community...

## Context https://github.com/pydantic/pydantic/pull/9495 introduces passing context to `TypeAdapter` models. ## Problem Some fastapi based projects use model definitions that have multiple uses, and serializing for an API response is only...

feature

## Change Summary Support passing in of context to `TypeAdapter`'s `dump_python` and `dump_json` functions, allowing context to be present during TypeAdapter serialization. ## Related issue number No related issue, but...

relnotes-fix