Skip to content

Commit ab2cf68

Browse files
robot-ci-heartexfarioashlomzik
authored
fix: Python SyntaxWarning: invalid escape sequence warnings from code generated by Fern (mirror) (#7955)
Co-authored-by: robot-ci-heartex <[email protected]> Co-authored-by: Sergey Zhuk <[email protected]> Co-authored-by: Andrew <[email protected]> Co-authored-by: hlomzik <[email protected]>
1 parent 1f9f7f2 commit ab2cf68

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

label_studio/data_export/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get(self, request, *args, **kwargs):
142142
```
143143
To export specific tasks with IDs of 123 and 345, run the following from the command line:
144144
```bash
145-
curl -X GET {}/api/projects/{{id}}/export?ids[]=123\&ids[]=345 -H \'Authorization: Token abc123\' --output 'annotations.json'
145+
curl -X GET '{}/api/projects/{{id}}/export?ids[]=123&ids[]=345' -H 'Authorization: Token abc123' --output 'annotations.json'
146146
```
147147
""".format(
148148
settings.HOSTNAME or 'https://localhost:8080',

label_studio/data_import/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
164164
There are three possible ways to import tasks with this endpoint:
165165
166-
### 1\. **POST with data**
166+
### 1. **POST with data**
167167
Send JSON tasks as POST data. Only JSON is supported for POSTing files directly.
168168
Update this example to specify your authorization token and Label Studio instance host, then run the following from
169169
the command line.
@@ -173,7 +173,7 @@
173173
-X POST '{host}/api/projects/1/import' --data '[{{"text": "Some text 1"}}, {{"text": "Some text 2"}}]'
174174
```
175175
176-
### 2\. **POST with files**
176+
### 2. **POST with files**
177177
Send tasks as files. You can attach multiple files with different names.
178178
179179
- **JSON**: text files in JavaScript object notation format
@@ -189,7 +189,7 @@
189189
-X POST '{host}/api/projects/1/import' -F 'file=@path/to/my_file.csv'
190190
```
191191
192-
### 3\. **POST with URL**
192+
### 3. **POST with URL**
193193
You can also provide a URL to a file with labeling tasks. Supported file formats are the same as in option 2.
194194
195195
```bash

label_studio/projects/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ def _update_tasks_counters_and_task_states(
10881088
recalculate_stats_counts: Optional[Mapping[str, int]] = None,
10891089
):
10901090
"""
1091-
Update tasks counters and update tasks states (rearrange and\or is_labeled)
1091+
Update tasks counters and update tasks states (rearrange and/or is_labeled)
10921092
:param queryset: Tasks to update queryset
10931093
:param from_scratch: Skip calculated tasks
10941094
:return: Count of updated tasks

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies = [
7373
"djangorestframework-simplejwt[crypto] (>=5.4.0,<6.0.0)",
7474
"tldextract (>=5.1.3)",
7575
## HumanSignal repo dependencies :start
76-
"label-studio-sdk @ https://github.com/HumanSignal/label-studio-sdk/archive/37671ed0738e04e33989e3112ded6a1633d182a1.zip",
76+
"label-studio-sdk @ https://github.com/HumanSignal/label-studio-sdk/archive/2a34701fa51a6878ead752644fc5181243258a9e.zip",
7777
## HumanSignal repo dependencies :end
7878
]
7979

0 commit comments

Comments
 (0)