We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65fcf56 commit 6af5a82Copy full SHA for 6af5a82
patterns/structural/mvc.py
@@ -166,9 +166,9 @@ def main():
166
167
168
if __name__ == "__main__":
169
- router: object = Router()
+ router = Router()
170
router.register("products", Controller, ProductModel, ConsoleView)
171
- controller: object = router.resolve(argv[1])
+ controller: Controller = router.resolve(argv[1])
172
173
action: str = str(argv[2]) if len(argv) > 2 else ""
174
args: str = ' '.join(map(str, argv[3:])) if len(argv) > 3 else ""
0 commit comments