Skip to content

Commit

Permalink
mark context attributes as Final
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Jul 24, 2024
1 parent cbc81cd commit 0eae9a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/posit/connect/context.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from typing import Final

import requests


class Context:
def __init__(
self, *, api_key: str, session: requests.Session, url: str
) -> None:
self.api_key = api_key
self.session = session
self.url = url
self.api_key: Final[str] = api_key
self.session: Final[requests.Session] = session
self.url: Final[str] = url

0 comments on commit 0eae9a1

Please sign in to comment.