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

Consider Modifying Inline to Allow for Arbitrary Order of Arguments #155

Open
jrg94 opened this issue May 4, 2023 · 0 comments
Open

Consider Modifying Inline to Allow for Arbitrary Order of Arguments #155

jrg94 opened this issue May 4, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jrg94
Copy link
Member

jrg94 commented May 4, 2023

The way Inline works right now, there is a clear hierarchy or precedence of attributes. For example, images and links take precedence over styling. As stated in the docs:

Due to this design, some forms of inline text are not possible.

I am curious if there is a way to allow order of arguments to matter for precedence or if this would even be a good idea. I know inspect library lets you do some introspection: https://docs.python.org/3.8/library/inspect.html#introspecting-callables-with-the-signature-object. I haven't looked too deeply, so this may not even be possible. And I certainly do not want to shift to a kwargs solution, as I prefer having keywords that are picked up in IDEs and static analysis tools.

@jrg94 jrg94 self-assigned this May 4, 2023
@jrg94 jrg94 added enhancement New feature or request good first issue Good for newcomers and removed good first issue Good for newcomers labels May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant