David Nesting
David Nesting
> My implementation always prefers TokenContext over Token where available. Yeah, not opposed to any of this. I do think documentation is either wrong (`oauth2.NewClient`), or ambiguous/misleading (`config.Client`, and `config.TokenSource`),...
Also just wanted to point out that https://go-review.googlesource.com/c/oauth2/+/493335, which updates documentation to match current behavior, is currently seeing some activity. If anyone wants to rely on our ability to change...
Oof, I hit this today too. I did some experiments with every combination of ways you can mix a context and an HttpClient. The cases that might be surprising to...
I submitted https://go-review.googlesource.com/c/oauth2/+/493335 to update the documentation to match implementation.
Agreed. I personally decided this was too much of a mine field, reset my controller to clear out all of the warts my experimentation here created in my environment, and...
I've always made good use of [protobuf's accessors](https://protobuf.dev/reference/go/go-generated/#singular-scalar-proto3) as a solution to this problem: > For either of these field definitions: > > ``` > optional int32 birth_year = 1;...
I'm doing a variation on this (`alpaca-py==0.14.0`), which seems to work OK. The API looks to be in flux. - [alpaca.data.historical.news.NewsClient](https://github.com/alpacahq/alpaca-py/blob/40e503625999342d8d914cb804c3dd2ecd7bff49/alpaca/data/historical/news.py#L14) - [alpaca.data.requests.NewsRequest](https://github.com/alpacahq/alpaca-py/blob/40e503625999342d8d914cb804c3dd2ecd7bff49/alpaca/data/requests.py#L379) - [alpaca.data.models.NewsSet](https://github.com/alpacahq/alpaca-py/blob/40e503625999342d8d914cb804c3dd2ecd7bff49/alpaca/data/models/news.py#L52) - [alpaca.data.models.News](https://github.com/alpacahq/alpaca-py/blob/40e503625999342d8d914cb804c3dd2ecd7bff49/alpaca/data/models/news.py#L21) Example: ```python import...
This should be easy enough to implement using your own HTTP transport, something like: ```go type retryTransport struct { base http.RoundTripper shouldRetry func(err error, numRetries int) bool // implementation here...
Running with `PCAPKIT_DEVMODE`: ``` project/venv/lib/python3.12/site-packages/pcapkit/__init__.py:0: DevModeWarning: development mode enabled PCAPKIT_DEVMODE=true [CRITICAL] 05/11/2025 11:03:03 AM - ProtocolError: PCAP-NG: [pack_flags] option must be in Packet Block, but found in 168627466 block. Traceback...