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

feat: Implement a FunctionView. #23

Merged
merged 5 commits into from
Sep 14, 2024

Conversation

DanCardin
Copy link
Collaborator

@DanCardin DanCardin commented May 18, 2024

Description

  • Abstract over the calling of get_type_hints in order to have practical use for ParameterView

To be clear, this whole impl is in-flux, while I try to actually apply it to cappa, to make sure it's usable. The current API seems to be usable in cappa, and works in place of the the existing usages of get_type_hints and inspect.signature

@DanCardin DanCardin force-pushed the dc/function-view branch 3 times, most recently from e0d9749 to a5b8157 Compare June 3, 2024 19:10
@DanCardin DanCardin marked this pull request as ready for review June 3, 2024 19:10
type_lens/function_view.py Outdated Show resolved Hide resolved
type_lens/function_view.py Outdated Show resolved Hide resolved
type_lens/callable_view.py Outdated Show resolved Hide resolved
@DanCardin DanCardin force-pushed the dc/function-view branch 3 times, most recently from 83ac746 to 4ffd2a5 Compare August 15, 2024 13:34
type_lens/callable_view.py Outdated Show resolved Hide resolved
type_lens/callable_view.py Show resolved Hide resolved
type_lens/callable_view.py Show resolved Hide resolved
type_lens/callable_view.py Show resolved Hide resolved
@provinzkraut
Copy link
Member

How long are you planning on holding on to 3.8 compatibility in cappa? Given 3.8 EOL is around the corner and the likelihood of this library being adopted into Litestar before 3.0 being pretty slim

@peterschutt Just wanted to point out we'll support 3.8 in Litestar beyond its EOL, specifically to cover evidently's use case, so dropping 3.8 would mean we definitely can't adopt. But I'm with you, I don't think we would be able to before 3.0 anyway.

@DanCardin DanCardin force-pushed the dc/function-view branch 6 times, most recently from 8534cb1 to b33ea80 Compare August 16, 2024 17:53
Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/type-lens-docs-preview/23

@provinzkraut provinzkraut enabled auto-merge (squash) September 14, 2024 11:11
@provinzkraut provinzkraut merged commit 3b4725b into litestar-org:main Sep 14, 2024
12 checks passed
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.

3 participants