Skip to content

decimal default parameter not being taken into account #1769

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

Closed
sensokame opened this issue Apr 13, 2022 · 1 comment · Fixed by #1773
Closed

decimal default parameter not being taken into account #1769

sensokame opened this issue Apr 13, 2022 · 1 comment · Fixed by #1773

Comments

@sensokame
Copy link

Environment

  • Pythonnet version: 3.0.0a2
  • Python version: 3.10.4
  • Operating System: Windows
  • .NET Runtime: 5.0.1

Details

  • use a method with default decimal parameter from python. I created a method with optional parameters, one of which is a decimal parameter "decimal sampling_time = 1", then in python I tried using this method with the default parameter, however, the value of the default parameter was 0 instead of the 1 that I set.
    Note: the other default parameters worked fine (uint, and int parameters)
@filmor
Copy link
Member

filmor commented Apr 26, 2022

I can reproduce this, will have a look.

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 a pull request may close this issue.

2 participants