CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 23:04:05 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/RDFLib/rdflib.git
etag: W/"e6624aeb9ba2e43c59dd6510279f7b1d"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=zv09pVyDWML6by9zyOAtvUAvCN55tKlNpOvJdzODLuQtPaiHXB4TC44s6NKu2hAArp2NpUZKPvbGq9R6EhiCunHKATATIM16VkGwKSvqDFPQ2TUHi8FNwI8mjiTHz4ObF7S2RwW3%2FXmsOUcSnbzF4BjbY5JxijCdlWbwDB0sxVyC6imIgfG%2BSM%2F7JyuvDZ3JNf6RdmpoQu%2FqOA1n%2F7U%2FRdGgIKhD0zL%2FzI6YjrLJMxMxx5Rd%2FgXCpHGnanBmWOXnBnKTC4%2Ba0kSokY2PUh%2FytA%3D%3D--Bzvhohnj7u8nTGDp--aKwfUb0H2u8yT5l04242VA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1856867142.1752879845; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 23:04:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 23:04:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D92C:11AC52:1F4B4D:2A540A:687AD2E5
fix: eliminate some mutable default arguments in SPARQL code (#2301) · RDFLib/rdflib@89982f8 · GitHub
Copy file name to clipboardExpand all lines: rdflib/plugins/sparql/evaluate.py
Copy file name to clipboardExpand all lines: rdflib/plugins/sparql/processor.py
Copy file name to clipboardExpand all lines: rdflib/plugins/sparql/update.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 576
Commit 89982f8
authored
fix: eliminate some mutable default arguments in SPARQL code (#2301)
This change eliminates some situations where a mutable object (i.e., a dictionary) was used as the default value for functions in the `rdflib.plugins.sparql.processor` module and related code. It replaces these situations with `typing.Optinal` that defaults to None, and is then handled within the function. Luckily, some of the code that the SPARQL Processor relied on already had this style, meaning not a lot of changes had to be made.
This change also makes a small update to the logic in the SPARQL Processor's query function to simplify the if/else statement. This better mirrors the implementation in the `UpdateProcessor`.1 parent 4fb468d commit 89982f8Copy full SHA for 89982f8
File tree
Expand file treeCollapse file tree
3 files changed
+26
-18
lines changedFilter options
- rdflib/plugins/sparql
Expand file treeCollapse file tree
3 files changed
+26
-18
lines changedrdflib/plugins/sparql/evaluate.py
Copy file name to clipboardExpand all lines: rdflib/plugins/sparql/evaluate.py+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
642 | 642 |
| |
643 | 643 |
| |
644 | 644 |
| |
645 |
| - | |
| 645 | + | |
646 | 646 |
| |
647 | 647 |
| |
648 | 648 |
| |
| |||
661 | 661 |
| |
662 | 662 |
| |
663 | 663 |
| |
664 |
| - | |
| 664 | + | |
665 | 665 |
| |
666 | 666 |
| |
667 | 667 |
| |
|
rdflib/plugins/sparql/processor.py
Copy file name to clipboardExpand all lines: rdflib/plugins/sparql/processor.py+20-14Lines changed: 20 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 |
| |
24 | 26 |
| |
25 | 27 |
| |
26 | 28 |
| |
| 29 | + | |
| 30 | + | |
27 | 31 |
| |
28 | 32 |
| |
29 | 33 |
| |
30 | 34 |
| |
31 | 35 |
| |
32 | 36 |
| |
33 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 |
| |
35 | 41 |
| |
36 | 42 |
| |
37 | 43 |
| |
| 44 | + | |
| 45 | + | |
38 | 46 |
| |
39 | 47 |
| |
40 | 48 |
| |
| |||
43 | 51 |
| |
44 | 52 |
| |
45 | 53 |
| |
46 |
| - | |
47 |
| - | |
| 54 | + | |
| 55 | + | |
48 | 56 |
| |
49 | 57 |
| |
50 | 58 |
| |
| |||
73 | 81 |
| |
74 | 82 |
| |
75 | 83 |
| |
76 |
| - | |
77 |
| - | |
| 84 | + | |
| 85 | + | |
78 | 86 |
| |
79 | 87 |
| |
80 | 88 |
| |
| |||
108 | 116 |
| |
109 | 117 |
| |
110 | 118 |
| |
111 |
| - | |
112 |
| - | |
| 119 | + | |
| 120 | + | |
113 | 121 |
| |
114 | 122 |
| |
115 | 123 |
| |
| |||
132 | 140 |
| |
133 | 141 |
| |
134 | 142 |
| |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + |
rdflib/plugins/sparql/update.py
Copy file name to clipboardExpand all lines: rdflib/plugins/sparql/update.py+4-2Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
283 |
| - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
284 | 286 |
| |
285 | 287 |
| |
286 | 288 |
| |
| |||
315 | 317 |
| |
316 | 318 |
| |
317 | 319 |
| |
318 |
| - | |
| 320 | + | |
319 | 321 |
| |
320 | 322 |
| |
321 | 323 |
| |
|
You can’t perform that action at this time.
0 commit comments