Add html_element to ensure returning an Element?
#61
pauleveritt
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
|
Revisiting this and curious if @ianjosephwilson has any thoughts. We can lose this thread if the status quo is as-expected. Workarounds are available (per-project helpers.) |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@pauleveritt Do you just need a type that has |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@ianjosephwilson Doesn't specifically have to be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My tests wind up doing
assert isinstance(result, Element)after every usage becausehtml()returns aNodeand the type checker immediately gets mad atresult.childrenand similar accesses.Beta Was this translation helpful? Give feedback.
All reactions