You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some APIs return std::optional<Token> and others return Token knowing that they will be nullable-ish. In the Python bindings, we should specialize nanobind::type_caster<std::optional<::pasta::Token>> and nanobind::type_caster<::pasta::Token> to present both as Optional[Token].
The text was updated successfully, but these errors were encountered:
Some APIs return
std::optional<Token>
and others returnToken
knowing that they will be nullable-ish. In the Python bindings, we should specializenanobind::type_caster<std::optional<::pasta::Token>>
andnanobind::type_caster<::pasta::Token>
to present both asOptional[Token]
.The text was updated successfully, but these errors were encountered: