Closes #15740: Fix typos and deprecated List in docs (#15741)

* Fix typos in migration-v4.md

* Replace typing.List with list

typing.List is deprecated since Python 3.9

* Also replace typing.List with list in graphql-api.md
This commit is contained in:
Markku Leiniö
2024-04-17 15:28:03 +03:00
committed by GitHub
parent 2a8876846f
commit 21db54ae2f
2 changed files with 7 additions and 10 deletions

View File

@@ -8,7 +8,6 @@ A plugin can extend NetBox's GraphQL API by registering its own schema class. By
```python
# graphql.py
from typing import List
import strawberry
import strawberry_django
@@ -28,7 +27,7 @@ class MyQuery:
@strawberry.field
def dummymodel(self, id: int) -> DummyModelType:
return None
dummymodel_list: List[DummyModelType] = strawberry_django.field()
dummymodel_list: list[DummyModelType] = strawberry_django.field()
schema = [