Skip to content

Typing#1792

Open
Armavica wants to merge 17 commits intopymc-devs:mainfrom
Armavica:typing
Open

Typing#1792
Armavica wants to merge 17 commits intopymc-devs:mainfrom
Armavica:typing

Conversation

@Armavica
Copy link
Copy Markdown
Member

@Armavica Armavica commented Dec 17, 2025

Description

Related Issue

  • Closes #
  • Related to #

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

cloned_outputs: list[Variable] | Variable | Out | list[Out]
if isinstance(outputs, list):
cloned_outputs = []
cloned_outputs_list = []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can cloned_outputs just be used?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wouldn't be type-stable and mypy doesn't like it. The problem is that if you declare it as list[T] | T it won't let you redeclare it as list[T].

@Armavica Armavica force-pushed the typing branch 3 times, most recently from c7ba247 to dee236c Compare December 17, 2025 23:28
@jessegrabowski
Copy link
Copy Markdown
Member

is this ready for review? Could you rebase it? I'd like to see it merged.

@Armavica
Copy link
Copy Markdown
Member Author

Sorry for the delay, I had a rough last six months. I will rebase this PR

@Armavica
Copy link
Copy Markdown
Member Author

@jessegrabowski Ready to review, likely to clash with #1983 but I don't mind rebasing

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