Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Standardize handling of None arguments across API calls using coerce_optional_dispatch

Aperta
#14 0 commenti 1 reazione 1 assegnatario Vedi su GitHub

@copilot-swe-agent ci sta già lavorando.

Dal 12/12/2025.

  • #49 di @copilot-swe-agent — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Currently, None is a valid argument for all API calls, but we don’t consistently handle it across the codebase. In cases where None is not explicitly supported, the function itself should take care of it internally.

To streamline this behavior, we should introduce a standardized mechanism for handling arguments. The proposed approach is to use coerce_optional_dispatch as a centralized solution for normalizing None inputs before further processing.

Benefits:

  • Consistent handling of None across all APIs
  • Reduces duplicated argument checks in multiple places
  • Improves code readability and maintainability
  • Ensures cleaner error handling and edge case management

Action items:

  • Review all API functions for current None handling.
  • Introduce coerce_optional_dispatch where applicable.
  • Remove redundant argument validation logic.
  • Add unit tests to confirm consistent handling of None inputs.
Lingua principale
Python
Stelle
13
Fork
2
Merge medio
26m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Autodesk/moldflow-api

Tutte le issue di Autodesk/moldflow-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.