Debian Codegraph @

tests/check_framework/urls/no_warnings.py

raw
1 from django.urls import include, path, re_path
2
3 urlpatterns = [
4 path("foo/", lambda x: x, name="foo"),
5 # This dollar is ok as it is escaped
6 re_path(
7 r"^\$",
8 include(
9 [
10 path("bar/", lambda x: x, name="bar"),
11 ]
12 ),
13 ),
14 ]