{{ message }}
Repository navigation
Commit 25c7356
authored
fix: 🐛 Fix potential warning in factory.py (#455)
Use ellipsis replace pass to avoid potential warning:
```
"resource": "/d:/Github/Python/python-patterns/patterns/creational/factory.py",
"owner": "pylance4",
"value": "reportReturnType",
"path": "/microsoft/pylance-release/blob/main/docs/diagnostics/reportReturnType.md",
"severity": 8,
"message": "Function with declared return type \"str\" must return value on all code paths\n \"None\" is not assignable to \"str\"",
"source": "Pylance",
"startLineNumber": 29,
"startColumn": 37,
"endLineNumber": 29,
"endColumn": 40,
"origin": "extHost1"
}]
```
Using VS Code with Pylance, Python debugger, and Black Formatter.1 parent ef74d59 commit 25c7356
1 file changed
Lines changed: 1 addition & 2 deletions

0 commit comments