Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[BUG] function_schema_parser does not support new python union types

Open
#51 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Locate the function_schema_parser entry point and reproduce the exception with the dataclass examples in this issue. Trace how Optional annotations are handled, then verify that the equivalent Python union annotations are accepted without an exception while existing Optional behavior remains intact.

Written by the indexing model from the issue text.

Description

Similar to https://github.com/palantir/python-compute-module/issues/50
You can't do this:

@dataclass
class ExternalImageSearchResponse:
    result: None | external.ImageSearchResponse
    error: None | str

You must do this:

@dataclass
class ExternalImageSearchResponse:
    result: Optional[external.ImageSearchResponse]
    error: Optional[str]

or the parser throws an exception

Dominant language
Python
Stars
15
Forks
11
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from palantir/python-compute-module

All issues in palantir/python-compute-module

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.