Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 26, 2024
1 parent e6c3231 commit a920bbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lectures/pandas/PublicAPIs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3320,9 +3320,9 @@
"source": [
"url = \"https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=51.5&lon=0\"\n",
"s = requests.Session()\n",
"s.headers[\n",
" \"User-Agent\"\n",
"] = \"uio-in3110 https://github.com/uio-in3110/uio-in3110.github.io\"\n",
"s.headers[\"User-Agent\"] = (\n",
" \"uio-in3110 https://github.com/uio-in3110/uio-in3110.github.io\"\n",
")\n",
"r = s.get(url)\n",
"r"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .cli import main

if __name__ == "__main__":
main()
main()
3 changes: 1 addition & 2 deletions lectures/python/exercises.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@
"metadata": {},
"outputs": [],
"source": [
"class Square(...):\n",
" ...\n",
"class Square(...): ...\n",
"\n",
"\n",
"sq = Square(5)\n",
Expand Down

0 comments on commit a920bbe

Please sign in to comment.