Commit 590021d
authored
[codegen] Don't provide two defaults (#90)
Why
===
Turns out that if we have an optional literal field, we were trying to
provide a default for the literal and also for the optional. mypy was
not having it.
What changed
============
This change chooses just one: the optional.
Test plan
=========
https://replit.semaphoreci.com/jobs/8dac3b8a-1803-4903-8acd-515e278789f2/summary
does not happen anymore.1 parent 3901dd1 commit 590021d
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
| 383 | + | |
388 | 384 | | |
389 | 385 | | |
390 | 386 | | |
| |||
0 commit comments