File
Blob: src/workerd/server/tests/python/default-class-with-legacy-global-handlers/worker.py
| 1 | from workers import WorkerEntrypoint |
| 2 | |
| 3 | # Without the fix, this failed with: |
| 4 | # |
| 5 | # service default-class-with-legacy-global-handlers: Uncaught TypeError: Cannot define multiple default entrypoints |
| 6 | # at pyodide:python-entrypoint-helper:286:15 in handleDefaultClass |
| 7 | # at pyodide:python-entrypoint-helper:321:5 in initPython |
| 8 | |
| 9 | |
| 10 | class Default(WorkerEntrypoint): |
| 11 | def test(*args): |
| 12 | pass |