Skip to content
File

Blob: src/workerd/server/tests/python/default-class-with-legacy-global-handlers/worker.py

python13 lines
1from 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 
10class Default(WorkerEntrypoint):
11 def test(*args):
12 pass